Skip to content

Commit

Permalink
✨ Add github workflow to update nix inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
arthsmn committed Jul 23, 2024
1 parent 024df2a commit 8af1046
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/update-nix-inputs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Update nix inputs

on:
workflow_dispatch:
schedule:
- cron: '51 2 * * 0'

jobs:
update:
name: inputs
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

- uses: DeterminateSystems/nix-installer-action@main
- uses: extractions/setup-just@v2
- name: Update inputs
run: just update-nix-inputs

- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: '⬆️ Nix: update inputs'
3 changes: 3 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ parser-data:
./generator > ../../highlevel.go ast.json
gofmt -s -w ../../highlevel.go
jq . < ast.json | sponge ast.json

update-nix-inputs:
nix flake update

0 comments on commit 8af1046

Please sign in to comment.