Skip to content

Commit

Permalink
(wip)
Browse files Browse the repository at this point in the history
(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)

(wip)
  • Loading branch information
lucassabreu committed Jan 29, 2024
1 parent ea8d2cc commit 605b0d7
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@master

- name: Adding markdown
run: echo '### Hello world 2 ' >> $GITHUB_STEP_SUMMARY

- name: clover file not found
uses: ./.
continue-on-error: true
Expand Down
12 changes: 9 additions & 3 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1998,7 +1998,7 @@ function requireOidcUtils () {
.catch(error => {
throw new Error(`Failed to get ID Token. \n
Error Code : ${error.statusCode}\n
Error Message: ${error.result.message}`);
Error Message: ${error.message}`);
});
const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value;
if (!id_token) {
Expand Down Expand Up @@ -89753,7 +89753,7 @@ function checkThreshold(c, o) {
}
var notFoundMessage = "was not found, please check if the path is valid, or if it exists.";
var run = function () { return __awaiter$1(void 0, void 0, void 0, function () {
var commit, cStats, _a, oldStats, _b, _c, msgs, body, _d, _e, filter, u_1, commentId, comments, i, c, e_2;
var commit, cStats, _a, oldStats, _b, _c, msgs, body, _d, _e, filter, u_1, commentId, comments, i, c, e_2, v;
var _g, _h;
return __generator(this, function (_j) {
switch (_j.label) {
Expand Down Expand Up @@ -89840,8 +89840,14 @@ var run = function () { return __awaiter$1(void 0, void 0, void 0, function () {
case 15:
_j.sent();
return [3 /*break*/, 16];
case 16: return [4 /*yield*/, github.rest.issues.createComment(__assign(__assign({}, utils$2.context.repo), { issue_number: utils$2.context.issue.number, body: body }))];
case 16:
v = coreExports.summary.addRaw(body);
coreExports.error(v.stringify());
return [4 /*yield*/, v.write()];
case 17:
_j.sent();
return [4 /*yield*/, github.rest.issues.createComment(__assign(__assign({}, utils$2.context.repo), { issue_number: utils$2.context.issue.number, body: body }))];
case 18:
_j.sent();
return [2 /*return*/];
}
Expand Down
2 changes: 1 addition & 1 deletion bin/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Lucas dos Santos Abreu <[email protected]>",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/core": "^1.10.1",
"@actions/github": "^5.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
Expand Down
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
getBooleanInput,
getInput,
setFailed,
summary,
} from "@actions/core";
import { getOctokit } from "@actions/github";
import { context } from "@actions/github/lib/utils";
Expand Down Expand Up @@ -270,6 +271,10 @@ ${signature}`;
} catch {}
}

const v = summary.addRaw(body);
error(v.stringify());
await v.write();

await github.rest.issues.createComment({
...context.repo,
issue_number: context.issue.number,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@actions/core@^1.10.0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.0.tgz#44551c3c71163949a2f06e94d9ca2157a0cfac4f"
integrity sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==
"@actions/core@^1.10.1":
version "1.10.1"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.1.tgz#61108e7ac40acae95ee36da074fa5850ca4ced8a"
integrity sha512-3lBR9EDAY+iYIpTnTIXmWcNbX3T2kCkAEQGIQx4NVQ0575nk2k3GRZDTPQG+vVtS2izSLmINlxXf0uLtnrTP+g==
dependencies:
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"
Expand Down

0 comments on commit 605b0d7

Please sign in to comment.