diff --git a/.github/workflows/container_foundationdb_version.yml b/.github/workflows/container_foundationdb_version.yml index 6903dcf2c0..57fc446ff2 100644 --- a/.github/workflows/container_foundationdb_version.yml +++ b/.github/workflows/container_foundationdb_version.yml @@ -25,7 +25,7 @@ on: default: '' concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.event.inputs.image_tag || format('foundationdb_{0}_seaweedfs_{1}', github.event.inputs.fdb_version || '7.4.5', github.event.inputs.seaweedfs_ref || github.ref_name) }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} permissions: @@ -37,8 +37,17 @@ jobs: permissions: contents: read id-token: write + actions: read steps: + - name: Wait for earlier publishing runs + if: github.event_name == 'workflow_dispatch' + uses: softprops/turnstyle@3805450be63b8c80577dc253e8c17e9132036df4 # v3.3.3 + with: + same-branch-only: false + poll-interval-seconds: 30 + abort-after-seconds: 7200 + initial-wait-seconds: 30 - name: Checkout uses: actions/checkout@v7 with: diff --git a/.github/workflows/container_latest.yml b/.github/workflows/container_latest.yml index 5a7980f51e..09115f900f 100644 --- a/.github/workflows/container_latest.yml +++ b/.github/workflows/container_latest.yml @@ -31,12 +31,13 @@ on: default: false concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.event.inputs.image_tag || github.run_id }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} permissions: contents: read security-events: write + actions: read jobs: setup: @@ -45,6 +46,14 @@ jobs: variants: ${{ steps.set-variants.outputs.variants }} publish: ${{ steps.set-publish.outputs.publish }} steps: + - name: Wait for earlier publishing runs + if: inputs.publish + uses: softprops/turnstyle@3805450be63b8c80577dc253e8c17e9132036df4 # v3.3.3 + with: + same-branch-only: false + poll-interval-seconds: 30 + abort-after-seconds: 7200 + initial-wait-seconds: 30 - name: Select variants for this run id: set-variants run: | diff --git a/.github/workflows/container_release_foundationdb.yml b/.github/workflows/container_release_foundationdb.yml index 8a365d68cd..48b69fde4e 100644 --- a/.github/workflows/container_release_foundationdb.yml +++ b/.github/workflows/container_release_foundationdb.yml @@ -12,7 +12,7 @@ on: default: '' concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && github.ref) || format('refs/tags/{0}', github.event.inputs.release_tag) || github.run_id }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') && github.ref) || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')) }} permissions: @@ -28,8 +28,16 @@ jobs: permissions: contents: read id-token: write + actions: read steps: + - name: Wait for earlier publishing runs + uses: softprops/turnstyle@3805450be63b8c80577dc253e8c17e9132036df4 # v3.3.3 + with: + same-branch-only: false + poll-interval-seconds: 30 + abort-after-seconds: 7200 + initial-wait-seconds: 30 - name: Checkout uses: actions/checkout@v7 diff --git a/.github/workflows/container_rocksdb_version.yml b/.github/workflows/container_rocksdb_version.yml index bc08c5960f..b69ca188b4 100644 --- a/.github/workflows/container_rocksdb_version.yml +++ b/.github/workflows/container_rocksdb_version.yml @@ -17,7 +17,7 @@ on: default: '' concurrency: - group: ${{ github.workflow }}-${{ github.event.inputs.image_tag || format('rocksdb_{0}_seaweedfs_{1}', github.event.inputs.rocksdb_version, github.event.inputs.seaweedfs_ref) }} + group: ${{ github.workflow }}-${{ github.run_id }} cancel-in-progress: false permissions: @@ -29,8 +29,16 @@ jobs: permissions: contents: read id-token: write + actions: read steps: + - name: Wait for earlier publishing runs + uses: softprops/turnstyle@3805450be63b8c80577dc253e8c17e9132036df4 # v3.3.3 + with: + same-branch-only: false + poll-interval-seconds: 30 + abort-after-seconds: 7200 + initial-wait-seconds: 30 - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v2