diff --git a/.github/workflows/danger.yml b/.github/workflows/danger.yml index dd72ed120..114c37f6d 100644 --- a/.github/workflows/danger.yml +++ b/.github/workflows/danger.yml @@ -9,6 +9,11 @@ jobs: name: Danger runs-on: macos-15 + concurrency: + # Only allow a single run of this workflow on each branch, automatically cancelling older runs. + group: ${{ format('danger-ci-{0}', github.ref) }} + cancel-in-progress: true + steps: - name: Checkout uses: actions/checkout@v5 @@ -21,4 +26,4 @@ jobs: run: danger-swift ci env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}