Cancel In Progress Jobs #3
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: Cancel_InProgress_Jobs | |
| run-name: Cancel In Progress Jobs | |
| description: "This workflow cancels in-progress jobs when a new run is triggered." | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| cancel_in_progress_job: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: example-group | |
| cancel-in-progress: true | |
| steps: | |
| - name: Cancel In Progress Step 1 | |
| run: echo "This job will cancel in-progress for the same job." |