Skip to content

Commit

Permalink
Remove GitHub Actions concurrency limits
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Dec 25, 2021
1 parent d2f3e89 commit 8b51e2a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ on:
branches: ['master']
tags: ['v[0-9]+.[0-9]+.[0-9]+*']

concurrency:
group: release-images-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build-images:
concurrency:
# If a previous run is ongoing with the same head_ref (it's a run on the
# same PR) then cancel it to save time. If it isn't a PR, only cancel the
# previous run if it's on the same commit SHA. This prevents a run for a
# commit push from cancelling a previous commit push's build, since we
# want an image built and tagged for each commit.
group: build-images-${{ github.head_ref || github.sha }}
cancel-in-progress: true
permissions:
contents: read # Read the repo contents.
id-token: write # Produce identity token for keyless signing.
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
pull_request:
branches: ['master']

concurrency:
group: integration-test-${{ github.head_ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ on:
pull_request:
branches: ['master']

concurrency:
group: unit-tests-${{ github.head_ref }}
cancel-in-progress: true

jobs:
tests:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8b51e2a

Please sign in to comment.