99 skip-signing :
1010 type : boolean
1111 default : false
12- snapshot-version :
12+ is-snapshot :
13+ type : boolean
14+ default : false
15+ checkout-ref :
1316 type : string
1417 default : ' '
1518
4043
4144 steps :
4245 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
43-
44- - name : Override version
45- if : ${{ inputs.snapshot-version != '' }}
46- uses : ./.github/actions/override-version
4746 with :
48- version : ${{ inputs.snapshot-version }}
49- target : cargo
47+ ref : ${{ inputs.checkout-ref }}
5048
5149 - name : Add Rustup Target
5250 run : |
8381
8482 steps :
8583 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
86-
87- - name : Override version
88- if : ${{ inputs.snapshot-version != '' }}
89- uses : ./.github/actions/override-version
9084 with :
91- version : ${{ inputs.snapshot-version }}
92- target : cargo
85+ ref : ${{ inputs.checkout-ref }}
9386
9487 - name : Add Rustup Target
9588 run : rustup target add ${{ matrix.target }}
@@ -178,6 +171,8 @@ jobs:
178171 - name : Checkout repository
179172 if : ${{ !inputs.skip-signing }}
180173 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
174+ with :
175+ ref : ${{ inputs.checkout-ref }}
181176
182177 - name : Install `rcodesign`
183178 if : ${{ !inputs.skip-signing }}
@@ -247,13 +242,8 @@ jobs:
247242
248243 steps :
249244 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
250-
251- - name : Override version
252- if : ${{ inputs.snapshot-version != '' }}
253- uses : ./.github/actions/override-version
254245 with :
255- version : ${{ inputs.snapshot-version }}
256- target : cargo
246+ ref : ${{ inputs.checkout-ref }}
257247
258248 # When rustup is updated, it tries to replace its binary, which on Windows is somehow locked.
259249 # This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029
@@ -286,6 +276,8 @@ jobs:
286276
287277 steps :
288278 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
279+ with :
280+ ref : ${{ inputs.checkout-ref }}
289281
290282 - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # 6.2.0
291283 with :
@@ -294,13 +286,6 @@ jobs:
294286 - name : Install dependencies
295287 run : npm ci --ignore-scripts
296288
297- - name : Override version
298- if : ${{ inputs.snapshot-version != '' }}
299- uses : ./.github/actions/override-version
300- with :
301- version : ${{ inputs.snapshot-version }}
302- target : npm
303-
304289 - name : Download compiled binaries
305290 uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # 8.0.0
306291 with :
@@ -322,11 +307,13 @@ jobs:
322307 if-no-files-found : ' error'
323308
324309 python-base :
325- if : ${{ !inputs.snapshot-version }}
310+ if : ${{ !inputs.is-snapshot }}
326311 name : python (base)
327312 runs-on : ubuntu-24.04
328313 steps :
329314 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
315+ with :
316+ ref : ${{ inputs.checkout-ref }}
330317 - name : Add Rustup Target
331318 run : rustup target add x86_64-unknown-linux-musl
332319 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 6.2.0
@@ -340,12 +327,14 @@ jobs:
340327 if-no-files-found : ' error'
341328
342329 python :
343- if : ${{ !inputs.snapshot-version }}
330+ if : ${{ !inputs.is-snapshot }}
344331 name : python
345332 runs-on : ubuntu-24.04
346333 needs : [linux, sign-macos-binaries, windows, python-base]
347334 steps :
348335 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
336+ with :
337+ ref : ${{ inputs.checkout-ref }}
349338 - uses : actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # 6.2.0
350339 with :
351340 python-version : ' 3.11'
@@ -372,15 +361,11 @@ jobs:
372361 needs : [linux, sign-macos-binaries, windows]
373362 steps :
374363 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
364+ with :
365+ ref : ${{ inputs.checkout-ref }}
375366 - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # 6.2.0
376367 with :
377368 node-version : ' 20.10.0'
378- - name : Override version
379- if : ${{ inputs.snapshot-version != '' }}
380- uses : ./.github/actions/override-version
381- with :
382- version : ${{ inputs.snapshot-version }}
383- target : npm-distributions
384369 - uses : actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # 8.0.0
385370 with :
386371 pattern : artifact-bin-*
@@ -416,7 +401,7 @@ jobs:
416401 if-no-files-found : ' error'
417402
418403 platform-specific-docker :
419- if : ${{ !inputs.snapshot-version }}
404+ if : ${{ !inputs.is-snapshot }}
420405 name : Build Docker Image (${{ matrix.platform }})
421406 strategy :
422407 matrix :
@@ -431,6 +416,8 @@ jobs:
431416 packages : write
432417 steps :
433418 - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
419+ with :
420+ ref : ${{ inputs.checkout-ref }}
434421
435422 - name : Set up Docker Buildx
436423 uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # 3.12.0
@@ -453,7 +440,7 @@ jobs:
453440 cache-to : type=gha,mode=max,scope=${{ matrix.platform }}
454441
455442 multiarch-docker :
456- if : ${{ !inputs.snapshot-version }}
443+ if : ${{ !inputs.is-snapshot }}
457444 name : Create Multi-Architecture Docker Image
458445 needs : platform-specific-docker
459446 runs-on : ubuntu-24.04
@@ -474,7 +461,7 @@ jobs:
474461 ghcr.io/${{ github.repository }}:${{ github.sha }}-arm64
475462
476463 merge :
477- if : ${{ !inputs.snapshot-version }}
464+ if : ${{ !inputs.is-snapshot }}
478465 name : Create Release Artifact
479466 runs-on : ubuntu-24.04
480467 needs : [linux, sign-macos-binaries, windows, npm-distributions, node, python]
0 commit comments