Skip to content

Commit

Permalink
For some reason we dropped concurrency tag. Now it is back to allow o…
Browse files Browse the repository at this point in the history
…nly one concurrent workflow per branch
  • Loading branch information
danielFlemstrom committed Sep 9, 2024
1 parent 2e636e4 commit f1666f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ on:
jobs:
build:
if: github.ref == 'refs/heads/main' || contains(github.event.head_commit.message, '--do-build')
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
uses: ./.github/workflows/build.yml
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

test:
needs: build
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
uses: ./.github/workflows/test.yml
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand All @@ -26,6 +32,9 @@ jobs:
publish:
needs: test
if: github.ref == 'refs/heads/main'
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
uses: ./.github/workflows/publish.yml
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
Expand Down

0 comments on commit f1666f4

Please sign in to comment.