.
This commit is contained in:
parent
50007f068e
commit
db5af11266
5 changed files with 75 additions and 0 deletions
21
.forgejo/workflows/update-flake.yaml
Normal file
21
.forgejo/workflows/update-flake.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Update Flake Inputs
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 2 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
update:
|
||||
runs-on: native
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Update flake inputs
|
||||
run: nix flake update
|
||||
- name: Commit and push if changed
|
||||
run: |
|
||||
git diff --quiet flake.lock && exit 0
|
||||
git config user.name "Forgejo Actions"
|
||||
git config user.email "actions@forgejo.ellie.town"
|
||||
git add flake.lock
|
||||
git commit -m "Update flake inputs (automated)"
|
||||
git push
|
||||
Loading…
Add table
Add a link
Reference in a new issue