Skip to content

Commit 5fc046d

Browse files
committed
feat: force cancel e2e workflow (#86)
1 parent f5b756c commit 5fc046d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Force Cancel E2E Workflow Run
2+
run-name: Force Cancel E2E Workflow ${{ inputs.run_id }}
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
run_id:
7+
description: "The workflow run ID to force-cancel"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
force-cancel:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Force cancel E2E workflow run
16+
env:
17+
GH_TOKEN: ${{ github.token }}
18+
run: |
19+
echo "Force-cancelling run: ${{ inputs.run_id }}"
20+
gh api \
21+
--method POST \
22+
/repos/opencrvs/e2e/actions/runs/${{ inputs.run_id }}/force-cancel
23+
echo "Workflow cancelled: https://github.com/opencrvs/e2e/actions/runs/${{ inputs.run_id }}"

0 commit comments

Comments
 (0)