Skip to content

Commit

Permalink
feat: again
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasreimers committed Mar 31, 2024
1 parent 7bbc85b commit 14da4ad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,18 @@ async function requestAndCancelWorkflow({
const octokit = github.getOctokit(github_token)
const { GITHUB_RUN_ID } = process.env

await octokit.rest.actions.cancelWorkflowRun({
const response = await octokit.rest.actions.cancelWorkflowRun({
owner,
repo,
run_id: Number(GITHUB_RUN_ID)
})

console.log(response)

if (!process.env.NEVER) {
return
}

if (result.status !== 200) {
core.warning(
'Response returned a non-200 status. Skipping Graphite checks.'
Expand Down

0 comments on commit 14da4ad

Please sign in to comment.