Skip to content

Commit ec83b3c

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

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

dist/index.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8548,23 +8548,7 @@ const octokit = new Octokit({
85488548
});
85498549
async function run() {
85508550

8551-
// const prEvents = [
8552-
// 'pull_request',
8553-
// 'pull_request_review',
8554-
// 'pull_request_review_comment',
8555-
// ];
8556-
8557-
// const getSHA = () => {
8558-
// let sha = github.context.sha;
8559-
// if (prEvents.includes(github.context.eventName)) {
8560-
// const pull = github.context.payload.pull_request
8561-
// if (pull?.head.sha) {
8562-
// sha = pull?.head.sha;
8563-
// }
8564-
// }
8565-
// return sha;
8566-
// };
8567-
//console.log("created check run context", github.context);
8551+
85688552
const owner = github.context.repo.owner
85698553
const repo = github.context.repo.repo
85708554

@@ -8576,8 +8560,9 @@ async function run() {
85768560
});
85778561
console.log("created check run ID", id);
85788562
process.env['CHECK_RUN_ID'] = `${id.data.id}`;
8579-
8563+
process.env['BUILD_NAME']=`${id.data.id}||${owner}||${repo}||${process.env.INSTALL_ID}`
85808564
console.log("read from env variabale", process.env.CHECK_RUN_ID)
8565+
console.log("read from env variabale build", process.env.BUILD_NAME)
85818566

85828567
async function update(){
85838568
console.log("read from env variabale from update part", process.env.CHECK_RUN_ID)

0 commit comments

Comments
 (0)