|
| 1 | +name: 🧹 Cancel duplicate work flows |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + types: [opened, synchronize, reopened] |
| 6 | +jobs: |
| 7 | + cancel-multiple-workflow-runs: |
| 8 | + name: "Cancel the self CI workflow run" |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - name: "Cancel build" |
| 12 | + uses: potiuk/cancel-workflow-runs@master |
| 13 | + with: |
| 14 | + cancelMode: allDuplicates |
| 15 | + cancelFutureDuplicates: true |
| 16 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 17 | + workflowFileName: build.yml |
| 18 | + - name: "Cancel pr scan" |
| 19 | + uses: potiuk/cancel-workflow-runs@master |
| 20 | + with: |
| 21 | + cancelMode: allDuplicates |
| 22 | + cancelFutureDuplicates: true |
| 23 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 24 | + workflowFileName: pr_scan.yml |
| 25 | + - name: "Cancel spell check" |
| 26 | + uses: potiuk/cancel-workflow-runs@master |
| 27 | + with: |
| 28 | + cancelMode: allDuplicates |
| 29 | + cancelFutureDuplicates: true |
| 30 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 31 | + workflowFileName: spell-check.yml |
| 32 | + - name: "Cancel test_cocoapods_integration" |
| 33 | + uses: potiuk/cancel-workflow-runs@master |
| 34 | + with: |
| 35 | + cancelMode: allDuplicates |
| 36 | + cancelFutureDuplicates: true |
| 37 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 38 | + workflowFileName: test_cocoapods_integration.yml |
| 39 | + - name: "Cancel test-carthage-integration" |
| 40 | + uses: potiuk/cancel-workflow-runs@master |
| 41 | + with: |
| 42 | + cancelMode: allDuplicates |
| 43 | + cancelFutureDuplicates: true |
| 44 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 45 | + workflowFileName: test-carthage-integration.yml |
| 46 | + - name: "Cancel test-SPM-integration" |
| 47 | + uses: potiuk/cancel-workflow-runs@master |
| 48 | + with: |
| 49 | + cancelMode: allDuplicates |
| 50 | + cancelFutureDuplicates: true |
| 51 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 52 | + workflowFileName: test-SPM-integration.yml |
| 53 | + - name: "Cancel validate_pr_labels_and_release_notes" |
| 54 | + uses: potiuk/cancel-workflow-runs@master |
| 55 | + with: |
| 56 | + cancelMode: allDuplicates |
| 57 | + cancelFutureDuplicates: true |
| 58 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 59 | + workflowFileName: validate_pr_labels_and_release_notes.yml |
0 commit comments