Force Cancel E2E Workflow 20222714077 #106
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Force Cancel E2E Workflow Run | |
| run-name: Force Cancel E2E Workflow ${{ inputs.run_id }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| run_id: | |
| description: "The workflow run ID to force-cancel" | |
| required: true | |
| type: string | |
| jobs: | |
| force-cancel: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Force cancel E2E workflow run | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| echo "Force-cancelling run: ${{ inputs.run_id }}" | |
| gh api \ | |
| --method POST \ | |
| /repos/opencrvs/e2e/actions/runs/${{ inputs.run_id }}/force-cancel | |
| echo "Workflow cancelled: https://github.com/opencrvs/e2e/actions/runs/${{ inputs.run_id }}" |