Cancel #15088
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 # Reduces overall build times by cancelling incomplete jobs | |
| on: | |
| workflow_run: | |
| workflows: ["CI"] | |
| types: | |
| - requested | |
| jobs: | |
| cancel: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Cancel incomplete runs except the latest | |
| uses: styfle/cancel-workflow-action@bdaa46e4662006504ca6b0cfb7488010126dc98c # cspell:disable-line | |
| with: | |
| all_but_latest: true | |
| workflow_id: ${{ github.event.workflow.id }} |