Skip to content

Commit

Permalink
feat: update workflows to use latest actions and add flake inputs upd…
Browse files Browse the repository at this point in the history
…ate job
  • Loading branch information
yousiki committed Nov 18, 2024
1 parent b399c3f commit e33171c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@main
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v9
uses: DeterminateSystems/flake-checker-action@main
- name: Install nix and flakes
uses: DeterminateSystems/nix-installer-action@main
- name: Use magic nix cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run nix flake check
run: nix flake check --all-systems
run: nix flake check --all-systems
2 changes: 1 addition & 1 deletion .github/workflows/deadnix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@main
- name: Check flake.lock file
uses: DeterminateSystems/flake-checker-action@main
- name: Install nix and flakes
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/statix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@main
- name: Check flake.lock file
uses: DeterminateSystems/flake-checker-action@main
- name: Install nix and flakes
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/update-inputs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Update flake inputs
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update-flake-inputs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Install nix and flakes
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Update flake.lock"
pr-labels: |
dependencies
automated
merge-queue

0 comments on commit e33171c

Please sign in to comment.