Skip to content

Commit

Permalink
delete on cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
tjjfvi committed Mar 25, 2024
1 parent 2b76f20 commit 5c008da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ jobs:
fi
- name: delete on cancel
if: ${{ cancelled() }}
run: gh api "repos/higherorderco/hvm-core/actions/runs/${{ github.run_id }}" -X DELETE
run: gh workflow run delete-cancelled.yml --ref ${{ github.ref }} -f run_id=${{ github.run_id }}
env:
GH_TOKEN: ${{ secrets.PAT }}
15 changes: 15 additions & 0 deletions .github/workflows/delete-canceled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Bench

on:
workflow_dispatch:
inputs:
run_id:
type: string

jobs:
delete:
runs-on: ubuntu-latest
steps:
- run: gh api "repos/higherorderco/hvm-core/actions/runs/${{ inputs.run_id }}" -X DELETE
env:
GH_TOKEN: ${{ secrets.PAT }}

0 comments on commit 5c008da

Please sign in to comment.