21 lines
553 B
YAML
21 lines
553 B
YAML
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
|