Skip to content

Commit 0b6d5ad

Browse files
Shivanshu SinghShivanshu Singh
authored andcommitted
github action
1 parent 3a98d17 commit 0b6d5ad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dist/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8534,6 +8534,8 @@ var __webpack_exports__ = {};
85348534
const core = __nccwpck_require__(9731);
85358535
const github = __nccwpck_require__(8009);
85368536
const {Octokit} = __nccwpck_require__(6307)
8537+
const fs = __nccwpck_require__(7147);
8538+
85378539
//const { createAppAuth } = require("@octokit/auth-app");
85388540
//console.log("App_ID", process.env.APP_ID)
85398541
//console.log("App_ID in integer", parseint(process.env.APP_ID))
@@ -8562,7 +8564,7 @@ async function run() {
85628564
// }
85638565
// return sha;
85648566
// };
8565-
console.log("created check run context", github.context);
8567+
//console.log("created check run context", github.context);
85668568
const owner = github.context.repo.owner
85678569
const repo = github.context.repo.repo
85688570

@@ -8573,8 +8575,12 @@ async function run() {
85738575
head_sha: github.context.payload.pull_request ? github.context.payload.pull_request.head.sha : github.context.sha,
85748576
});
85758577
console.log("created check run ID", id);
8578+
fs.appendFileSync('GITHUB_ENV.env', `CHECK_RUN_ID=${id}`);
8579+
8580+
console.log("read from env variabale", process.env.CHECK_RUN_ID)
85768581

85778582
async function update(){
8583+
console.log("read from env variabale from update part", process.env.CHECK_RUN_ID)
85788584
const res = await octokit.rest.checks.update({
85798585
owner : owner,
85808586
repo : repo,
@@ -8598,7 +8604,6 @@ try{run();
85988604
console.log(err);
85998605
core.setFailed(error.message);
86008606
}
8601-
86028607
})();
86038608

86048609
module.exports = __webpack_exports__;

0 commit comments

Comments
 (0)