From f063fc885b7a4f7294f4243d0e7b53b141a9caea Mon Sep 17 00:00:00 2001 From: Tobias Roeser Date: Tue, 20 Jul 2021 10:54:32 +0200 Subject: [PATCH] Try to avoid concurrent sonatype publish jobs --- .github/workflows/actions.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index c4cc662e495..ee9bf29a482 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -98,6 +98,10 @@ jobs: runs-on: ubuntu-latest + # only run one publish job for the same sha at the same time + # e.g. when a main-branch push is also tagged + concurrency: publish-sonatype-${{ github.sha }} + env: SONATYPE_PGP_SECRET: ${{ secrets.SONATYPE_PGP_SECRET }} SONATYPE_DEPLOY_USER: ${{ secrets.SONATYPE_DEPLOY_USER }}