From f1666f4bea20f33da7fb89f899ee69cda3a3c7b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Flemstro=CC=88m?= Date: Mon, 9 Sep 2024 07:16:18 +0200 Subject: [PATCH] For some reason we dropped concurrency tag. Now it is back to allow only one concurrent workflow per branch --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 72499e3..0a93fe5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,6 +11,9 @@ 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 }} @@ -18,6 +21,9 @@ jobs: test: needs: build + concurrency: + group: test-${{ github.ref }} + cancel-in-progress: true uses: ./.github/workflows/test.yml secrets: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} @@ -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 }}