Skip to content

Commit

Permalink
DS-970: Add Magic Nix Cache and other workflow changes
Browse files Browse the repository at this point in the history
 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
  • Loading branch information
flexiondotorg committed Jul 14, 2023
1 parent 4fbf969 commit 51e1459
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ jobs:
fetch-depth: 0
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Enable magic Nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Shellcheck
run: nix-shell --run 'shellcheck $(find . -type f -name "*.sh" -executable)'
14 changes: 7 additions & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
- cron: '0 0 * * 0'

jobs:
lockfile:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: ./.
uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- uses: ./.

0 comments on commit 51e1459

Please sign in to comment.