Skip to content

Commit 51e1459

Browse files
committed
DS-970: Add Magic Nix Cache and other workflow changes
An assortment of GitHub Workflow changes, potentially including: - Enable DeterminateSystems/magic-nix-cache-action@main - Reference all DeterminateSystems actions via @main - Make update.yaml consistent across repos - Remove unnecessary github-token: from nix-installer-action - Update actions/checkout@v2 to actions/checkout@v3
1 parent 4fbf969 commit 51e1459

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ jobs:
1313
fetch-depth: 0
1414
- name: Install Nix
1515
uses: DeterminateSystems/nix-installer-action@main
16+
- name: Enable magic Nix cache
17+
uses: DeterminateSystems/magic-nix-cache-action@main
1618
- name: Shellcheck
1719
run: nix-shell --run 'shellcheck $(find . -type f -name "*.sh" -executable)'

.github/workflows/update.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: update-flake-lock
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: "0 0 * * 0"
5+
- cron: '0 0 * * 0'
66

77
jobs:
88
lockfile:
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-22.04
1010
steps:
11-
- name: Checkout repository
12-
uses: actions/checkout@v3
13-
- name: Install Nix
14-
uses: DeterminateSystems/nix-installer-action@main
1511
- name: Update flake.lock
16-
uses: ./.
12+
uses: actions/checkout@v3
13+
- uses: DeterminateSystems/nix-installer-action@main
14+
- uses: DeterminateSystems/magic-nix-cache-action@main
15+
- uses: DeterminateSystems/flake-checker-action@main
16+
- uses: ./.

0 commit comments

Comments
 (0)