Skip to content

Commit

Permalink
Fix concurrency issue with workflow (#6034)
Browse files Browse the repository at this point in the history
  • Loading branch information
takameyer authored Aug 8, 2023
1 parent 99c70a7 commit eb91953
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/package-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
# Run this on updates to the workflow
- ".github/workflows/package-unit-tests.yml"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
unit-tests-linux:
strategy:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test Coverage
on: ["push", "pull_request"]

concurrency:
group: ${{ github.head_ref || github.run_id }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:

- name: Setup Wireit cache
uses: google/wireit@setup-github-actions-caching/v1

- name: Environment setup
run: sudo apt-get install ccache ninja-build

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Linting (Pull Request)
on: pull_request
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REALM_DISABLE_ANALYTICS: 1
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-realm-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.head_ref || github.run_id }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr-realm-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ on:
# No need to run when updating documentation
- "!**.md"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
REALM_DISABLE_ANALYTICS: 1

Expand Down

0 comments on commit eb91953

Please sign in to comment.