@@ -13,11 +13,11 @@ jobs:
13
13
release_body : ${{ steps.git-cliff.outputs.content }}
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v4
16
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17
17
with :
18
18
fetch-depth : 0
19
19
- name : Generate a changelog
20
- uses : orhun/git-cliff-action@main
20
+ uses : orhun/git-cliff-action@104a6cf3c9aa0fdfe4eab129f9c1900e1eb8f7fd # main
21
21
id : git-cliff
22
22
with :
23
23
config : cliff.toml
@@ -129,7 +129,7 @@ jobs:
129
129
}
130
130
steps :
131
131
- name : Checkout
132
- uses : actions/checkout@v4
132
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
133
133
- name : Set the release version
134
134
shell : bash
135
135
run : echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
@@ -142,21 +142,21 @@ jobs:
142
142
--allow-unauthenticated musl-tools
143
143
fi
144
144
- name : Install Rust toolchain
145
- uses : actions-rs/toolchain@v1
145
+ uses : actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
146
146
with :
147
147
toolchain : ${{ matrix.build.TOOLCHAIN }}
148
148
target : ${{ matrix.build.TARGET }}
149
149
override : true
150
150
- name : Build (linux/macos)
151
151
if : matrix.build.OS != 'windows-2022'
152
- uses : actions-rs/cargo@v1
152
+ uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
153
153
with :
154
154
use-cross : true
155
155
command : build
156
156
args : --release --locked --target ${{ matrix.build.TARGET }}
157
157
- name : Build (windows)
158
158
if : matrix.build.OS == 'windows-2022'
159
- uses : actions-rs/cargo@v1
159
+ uses : actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
160
160
with :
161
161
command : build
162
162
args : --release --locked --target ${{ matrix.build.TARGET }} # --no-default-features
@@ -197,7 +197,7 @@ jobs:
197
197
git-cliff-${{ env.RELEASE_VERSION }}-${{ matrix.build.TARGET }}.tar.gz
198
198
- name : Publish to GitHub
199
199
if : ${{ !contains(github.ref, '-') }}
200
- uses : svenstaro/upload-release-action@v2
200
+ uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
201
201
with :
202
202
repo_token : ${{ secrets.GITHUB_TOKEN }}
203
203
file : git-cliff-${{ env.RELEASE_VERSION }}-${{ matrix.build.TARGET }}*
@@ -208,7 +208,7 @@ jobs:
208
208
body : " ${{ needs.generate-changelog.outputs.release_body }}"
209
209
- name : Publish to GitHub (pre-release)
210
210
if : ${{ contains(github.ref, '-') }}
211
- uses : svenstaro/upload-release-action@v2
211
+ uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
212
212
with :
213
213
repo_token : ${{ secrets.GITHUB_TOKEN }}
214
214
file : git-cliff-${{ env.RELEASE_VERSION }}-${{ matrix.build.TARGET }}*
@@ -219,7 +219,7 @@ jobs:
219
219
prerelease : true
220
220
- name : Install node
221
221
if : matrix.build.NPM_PUBLISH == true
222
- uses : actions/setup-node@v4
222
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
223
223
with :
224
224
node-version : 18
225
225
registry-url : " https://registry.npmjs.org"
@@ -252,7 +252,7 @@ jobs:
252
252
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
253
253
- name : Build Python wheels (linux)
254
254
if : matrix.build.PYPI_PUBLISH == true && startsWith(matrix.build.NAME, 'linux')
255
- uses : PyO3/maturin-action@v1
255
+ uses : PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
256
256
with :
257
257
working-directory : pypi
258
258
target : ${{ matrix.build.TARGET }}
@@ -264,23 +264,23 @@ jobs:
264
264
if : |
265
265
matrix.build.PYPI_PUBLISH == true &&
266
266
(startsWith(matrix.build.OS, 'macos') || startsWith(matrix.build.OS, 'windows'))
267
- uses : PyO3/maturin-action@v1
267
+ uses : PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
268
268
with :
269
269
working-directory : pypi
270
270
target : ${{ matrix.build.TARGET }}
271
271
args : --release --sdist --out wheels
272
272
sccache : " true"
273
273
- name : Build Python wheels (musl)
274
274
if : matrix.build.PYPI_PUBLISH == true && endsWith(matrix.build.OS, 'musl')
275
- uses : PyO3/maturin-action@v1
275
+ uses : PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
276
276
with :
277
277
working-directory : pypi
278
278
target : ${{ matrix.build.TARGET }}
279
279
args : --release --sdist --out wheels
280
280
sccache : " true"
281
281
manylinux : musllinux_1_2
282
282
- name : Upload Python wheels
283
- uses : actions/upload-artifact@v4
283
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
284
284
with :
285
285
name : " wheels-${{ matrix.build.TARGET }}"
286
286
working-directory : pypi
@@ -292,9 +292,9 @@ jobs:
292
292
runs-on : ubuntu-22.04
293
293
steps :
294
294
- name : Checkout
295
- uses : actions/checkout@v4
295
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
296
296
- name : Install node
297
- uses : actions/setup-node@v4
297
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
298
298
with :
299
299
node-version : 18
300
300
registry-url : " https://registry.npmjs.org"
@@ -322,13 +322,13 @@ jobs:
322
322
runs-on : ubuntu-22.04
323
323
needs : publish-binaries
324
324
steps :
325
- - uses : actions/download-artifact@v4
325
+ - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
326
326
with :
327
327
path : pypi/wheels
328
328
pattern : wheels-*
329
329
merge-multiple : true
330
330
- name : Publish to PyPI
331
- uses : PyO3/maturin-action@v1
331
+ uses : PyO3/maturin-action@35be3186fc8e037e329f06b68dcd807d83dcc6dc # v1.49.2
332
332
env :
333
333
MATURIN_PYPI_TOKEN : ${{ vars.USE_TESTPYPI == 'true' && secrets.TESTPYPI_API_TOKEN || secrets.PYPI_API_TOKEN }}
334
334
MATURIN_REPOSITORY : ${{ vars.USE_TESTPYPI == 'true' && 'testpypi' || 'pypi' }}
@@ -342,12 +342,12 @@ jobs:
342
342
runs-on : ubuntu-22.04
343
343
steps :
344
344
- name : Checkout
345
- uses : actions/checkout@v4
345
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
346
346
- name : Set the release version
347
347
shell : bash
348
348
run : echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
349
349
- name : Install Rust toolchain
350
- uses : dtolnay/rust-toolchain@stable
350
+ uses : dtolnay/rust-toolchain@4305c38b25d97ef35a8ad1f985ccf2d2242004f2 # stable
351
351
with :
352
352
targets : x86_64-unknown-linux-gnu
353
353
- name : Install cargo-deb
@@ -372,7 +372,7 @@ jobs:
372
372
git-cliff-${{ env.RELEASE_VERSION }}.deb
373
373
- name : Upload the release
374
374
if : ${{ !contains(github.ref, '-') }}
375
- uses : svenstaro/upload-release-action@v2
375
+ uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
376
376
with :
377
377
repo_token : ${{ secrets.GITHUB_TOKEN }}
378
378
file : git-cliff-${{ env.RELEASE_VERSION }}.deb
@@ -381,7 +381,7 @@ jobs:
381
381
body : " ${{ needs.generate-changelog.outputs.release_body }}"
382
382
- name : Upload the pre-release
383
383
if : ${{ contains(github.ref, '-') }}
384
- uses : svenstaro/upload-release-action@v2
384
+ uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
385
385
with :
386
386
repo_token : ${{ secrets.GITHUB_TOKEN }}
387
387
file : git-cliff-${{ env.RELEASE_VERSION }}.deb
@@ -395,12 +395,12 @@ jobs:
395
395
runs-on : ubuntu-22.04
396
396
steps :
397
397
- name : Checkout
398
- uses : actions/checkout@v4
398
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
399
399
- name : Set the release version
400
400
shell : bash
401
401
run : echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
402
402
- name : Install Rust toolchain
403
- uses : dtolnay/rust-toolchain@stable
403
+ uses : dtolnay/rust-toolchain@4305c38b25d97ef35a8ad1f985ccf2d2242004f2 # stable
404
404
with :
405
405
targets : x86_64-unknown-linux-gnu
406
406
- name : Install cargo-generate-rpm
@@ -423,7 +423,7 @@ jobs:
423
423
git-cliff-${{ env.RELEASE_VERSION }}.x86_64.rpm
424
424
- name : Upload the release
425
425
if : ${{ !contains(github.ref, '-') }}
426
- uses : svenstaro/upload-release-action@v2
426
+ uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
427
427
with :
428
428
repo_token : ${{ secrets.GITHUB_TOKEN }}
429
429
file : git-cliff-${{ env.RELEASE_VERSION }}.x86_64.rpm
@@ -432,7 +432,7 @@ jobs:
432
432
body : " ${{ needs.generate-changelog.outputs.release_body }}"
433
433
- name : Upload the pre-release
434
434
if : ${{ contains(github.ref, '-') }}
435
- uses : svenstaro/upload-release-action@v2
435
+ uses : svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd # v2
436
436
with :
437
437
repo_token : ${{ secrets.GITHUB_TOKEN }}
438
438
file : git-cliff-${{ env.RELEASE_VERSION }}.x86_64.rpm
@@ -445,11 +445,11 @@ jobs:
445
445
runs-on : ubuntu-22.04
446
446
steps :
447
447
- name : Checkout
448
- uses : actions/checkout@v4
448
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
449
449
- name : Set the release version
450
450
run : echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
451
451
- name : Install Rust toolchain
452
- uses : dtolnay/rust-toolchain@stable
452
+ uses : dtolnay/rust-toolchain@4305c38b25d97ef35a8ad1f985ccf2d2242004f2 # stable
453
453
with :
454
454
targets : x86_64-unknown-linux-gnu
455
455
- name : Prepare for the crates.io release
@@ -482,7 +482,7 @@ jobs:
482
482
contents : read
483
483
steps :
484
484
- name : Bump formula
485
-
485
+ uses : mislav/bump-homebrew-formula-action@8e2baa47daaa8db10fcdeb04105dfa6850eb0d68 # v3.4
486
486
with :
487
487
formula-name : git-cliff
488
488
formula-path : Formula/g/git-cliff.rb
0 commit comments