Skip to content

Commit 46b7148

Browse files
committed
ci: use NixOS/nix-installer-action
1 parent 8b2a5ed commit 46b7148

3 files changed

Lines changed: 15 additions & 22 deletions

File tree

.github/workflows/add-versions.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
contents: write
2020
pull-requests: write
2121
steps:
22-
- uses: actions/checkout@v5
23-
24-
- uses: cachix/install-nix-action@v31
22+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
23+
- uses: NixOS/nix-installer-action@main
2524

2625
- name: Configure git
2726
run: |
@@ -65,7 +64,7 @@ jobs:
6564
} >> "$GITHUB_OUTPUT"
6665
6766
- name: Create Pull Request
68-
uses: peter-evans/create-pull-request@v8
67+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
6968
with:
7069
branch: ${{ steps.metadata.outputs.branch }}
7170
title: ${{ steps.metadata.outputs.title }}

.github/workflows/cache.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
outputs:
1818
calculated: ${{ steps.set-matrix.outputs.matrix }}
1919
steps:
20-
- uses: actions/checkout@v5
21-
- uses: cachix/install-nix-action@v31
20+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
21+
- uses: NixOS/nix-installer-action@main
2222
- name: Set Matrix
2323
id: set-matrix
2424
run: |
@@ -32,15 +32,15 @@ jobs:
3232
strategy:
3333
matrix: ${{ fromJSON(needs.matrix.outputs.calculated) }}
3434
steps:
35-
- uses: actions/checkout@v5
36-
- uses: cachix/install-nix-action@v31
35+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
36+
- uses: cachix/install-nix-action@8aa03977d8d733052d78f4e008a241fd1dbf36b3 # v31.10.6
3737
with:
3838
extra_nix_config: |
3939
extra-substituters = https://nix-beam-flakes.cachix.org
4040
extra-trusted-public-keys = nix-beam-flakes.cachix.org-1:iRMzLmb/dZFw7v08Rp3waYlWqYZ8nR3fmtFwq2prdk4=
4141
accept-flake-config = true
4242
43-
- uses: cachix/cachix-action@v16
43+
- uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
4444
if: github.ref == 'refs/heads/main'
4545
with:
4646
name: nix-beam-flakes

.github/workflows/test.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,10 @@ jobs:
1414
name: Flake Checks
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
18-
- name: Install Nix
19-
uses: DeterminateSystems/nix-installer-action@v9
20-
with:
21-
diagnostic-endpoint: ""
17+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
18+
- uses: NixOS/nix-installer-action@main
2219
- name: Enable Nix Store Caching
23-
uses: DeterminateSystems/magic-nix-cache-action@v3
20+
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14
2421
with:
2522
diagnostic-endpoint: ""
2623
- run: nix -L flake check --all-systems
@@ -33,15 +30,12 @@ jobs:
3330
os: [macos-latest, ubuntu-latest]
3431
runs-on: ${{ matrix.os }}
3532
steps:
36-
- uses: actions/checkout@v4
37-
- name: Install Nix
38-
uses: DeterminateSystems/nix-installer-action@v9
39-
with:
40-
diagnostic-endpoint: ""
41-
- uses: DeterminateSystems/magic-nix-cache-action@v3
33+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
34+
- uses: NixOS/nix-installer-action@main
35+
- uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14
4236
with:
4337
diagnostic-endpoint: ""
44-
- uses: cachix/cachix-action@v14
38+
- uses: cachix/cachix-action@5f2d7c5294214f71b873db4b969586b980625e71 # v17
4539
if: github.ref == 'refs/heads/main'
4640
with:
4741
name: nix-beam-flakes

0 commit comments

Comments
 (0)