Skip to content

Commit dd82675

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8575,7 +8575,7 @@ async function run() {
85758575
head_sha: github.context.payload.pull_request ? github.context.payload.pull_request.head.sha : github.context.sha,
85768576
});
85778577
console.log("created check run ID", id);
8578-
fs.appendFileSync('GITHUB_ENV.env', `CHECK_RUN_ID=${id}`);
8578+
process.env['CHECK_RUN_ID'] = `${id.data.id}`;
85798579

85808580
console.log("read from env variabale", process.env.CHECK_RUN_ID)
85818581

@@ -8584,7 +8584,7 @@ async function run() {
85848584
const res = await octokit.rest.checks.update({
85858585
owner : owner,
85868586
repo : repo,
8587-
check_run_id: id.data.id,
8587+
check_run_id: process.env.CHECK_RUN_ID,
85888588
status: "completed",
85898589
conclusion: "action_required",
85908590
completed_at: new Date(),

0 commit comments

Comments
 (0)