Skip to content

Commit

Permalink
github-ci: cancel in-progress runs if PR is updated
Browse files Browse the repository at this point in the history
Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Feb 7, 2025
1 parent 0fd2352 commit ce4c9f8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ env:
MAX_WORKERS: 4
BUILD_ID: ${{ github.run_id }}-${{ github.run_attempt }}

# cancel the in-progress workflow when PR is refreshed.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

jobs:
e2e-rdr:
runs-on: [self-hosted, e2e-rdr]
Expand Down

0 comments on commit ce4c9f8

Please sign in to comment.