Skip to content

Commit

Permalink
chore: update github action yml
Browse files Browse the repository at this point in the history
  • Loading branch information
halajohn committed Jan 7, 2025
1 parent cec5aea commit aacb019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cancel_on_merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
console.log(`Cancelling workflows related to PR #${prNumber} (SHA: ${headSha})`);
// Retrieve all workflow runs associated with the head SHA of the PR.
const runs = await github.actions.listWorkflowRunsForRepo({
const runs = await octokit.actions.listWorkflowRunsForRepo({
owner,
repo,
head_sha: headSha,
Expand All @@ -36,7 +36,7 @@ jobs:
// Cancel all related workflow runs.
for (const run of runs.data.workflow_runs) {
console.log(`Cancel workflow run: ${run.id} (${run.name})`);
await github.actions.cancelWorkflowRun({
await octokit.actions.cancelWorkflowRun({
owner,
repo,
run_id: run.id,
Expand Down

0 comments on commit aacb019

Please sign in to comment.