From 232a1e0b9fad2936fad73783e91d5d214bac6949 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 7 Apr 2021 23:11:16 +0100 Subject: [PATCH] Ensure that releases are not ran in parallel (#2294) --- .github/workflows/publish.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9b8c32c0f5..4f17745692 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,16 @@ jobs: - uses: actions/checkout@v1 - uses: gradle/wrapper-validation-action@v1 + # Ensure that releases are not ran in parallel, this ensures that the latest commit is the latest release + # See https://github.com/softprops/turnstyle + - name: Turnstyle + uses: softprops/turnstyle@v1 + with: + continue-after-seconds: 900 + same-branch-only: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # Generate the build number based on tags to allow per branch build numbers, not something github provides by default. - name: Generate build number id: buildnumber