Skip to content

Commit

Permalink
Cancel in progress workflows on new commit (#6759)
Browse files Browse the repository at this point in the history
* chore: cancel in progress workflows on new commit

* chore: add workflow for wasm tests

* add concurrency for e2e-fork.

---------

Co-authored-by: DimitrisJim <[email protected]>
  • Loading branch information
chatton and DimitrisJim authored Jul 4, 2024
1 parent b61a35a commit 42f0774
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/e2e-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- '**.md'
- 'LICENSE'

# cancel workflows if a new one is triggered on the same branch.
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
# dynamically build a matrix of test/test suite pairs to run
build-test-matrix:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/e2e-wasm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ on:
# trigger workflow if PR is marked ready for review.
- ready_for_review

# cancel workflows if a new one is triggered on the same branch.
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
# determine-image-tag will either output the PR number e.g. pr-1234 or the string main.
# this will be used to tag the images that are built during the workflow.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
- 'docs/**'
- '**.md'
- 'LICENSE'
# cancel workflows if a new one is triggered on the same branch.
concurrency:
group: ${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
# determine-image-tag will either output the PR number e.g. pr-1234 or the string main.
Expand Down

0 comments on commit 42f0774

Please sign in to comment.