ci: queue publish runs via turnstyle instead of cancel-free shared groups

This commit is contained in:
Chris Lu committed 2026-10-23 04:08:41 -07:00
1 parent 4cf9dbf78c
commit 039148f8d5
4 files changed
+38 -4

No files matched your search

@@ -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:
+10 -1
View File
@@ -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: |
@@ -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
@@ -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