Files
nix-config/.gitea/workflows/auto_update.yaml
T

31 lines
663 B
YAML
Raw Normal View History

2026-04-23 17:28:23 +02:00
name: update the nix flake lock automatically every week
run-name: update
2026-04-23 17:40:49 +02:00
permissions:
contents: write
2026-04-23 17:28:23 +02:00
on:
schedule:
- cron: "0 4 * * 1"
2026-04-23 17:29:38 +02:00
workflow_dispatch:
2026-04-23 17:28:23 +02:00
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: get repo
uses: actions/checkout@v4.2.2
- name: install nix
uses: https://github.com/cachix/install-nix-action@v31
- name: run the update
run: nix flake update
2026-04-23 17:40:49 +02:00
- name: Commit and push
run: |
git config user.name "Update action"
git config user.email "update-action@no-one.com"
git add .
git commit -m "Auto update"
git push