forked from extern/flakelight
Add Github workflow for automatic flake updates
This commit is contained in:
parent
8f3bfc39aa
commit
dcb12b6a22
@ -9,7 +9,7 @@ trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
max_line_length = 80
|
||||
|
||||
[{*.nix,flake.lock}]
|
||||
[{*.nix,flake.lock,*.yml}]
|
||||
indent_size = 2
|
||||
|
||||
[*.md]
|
||||
|
25
.github/workflows/update.yml
vendored
Normal file
25
.github/workflows/update.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: Update flake inputs
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 12 ? * MON"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
update-inputs:
|
||||
name: Update inputs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: cachix/install-nix-action@master
|
||||
- name: Configure git
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
- run: nix flake update --commit-lock-file
|
||||
- run: nix flake check --all-systems
|
||||
- run: nix eval .#tests
|
||||
- run: git push
|
Loading…
Reference in New Issue
Block a user