We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5b756c commit 5fc046dCopy full SHA for 5fc046d
.github/workflows/force-cancel-e2e.yml
@@ -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