name: cancel-builds-on-update on: workflow_run: # workflows: ['formatting', 'ubuntu-bionic', 'ubuntu-focal-dyninst-package', 'ubuntu-focal-external-rocm', 'ubuntu-focal-external', 'ubuntu-focal'] workflows: ['formatting', 'ubuntu-focal-external', 'ubuntu-focal-external-rocm'] types: ['requested'] jobs: cancel-duplicate-workflow-runs: name: "Cancel duplicate workflow runs" runs-on: ubuntu-latest steps: - uses: potiuk/cancel-workflow-runs@master name: "Cancel duplicate workflow runs" with: cancelMode: duplicates cancelFutureDuplicates: true token: ${{ secrets.GITHUB_TOKEN }} sourceRunId: ${{ github.event.workflow_run.id }} notifyPRCancel: true skipEventTypes: '["schedule"]'