nixos/.gitea/workflows/update.yaml

24 lines
668 B
YAML

name: Update flake.lock
# https://forgejo.org/docs/latest/user/actions/#onschedule
on:
- schedule:
# - cron: "23 17 * * 1"
- cron: "*/5 * * * *"
jobs:
build:
runs-on: nixos-latest
# TODO: container?
steps:
# https://code.forgejo.org/actions/checkout
- name: Checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: Update flake.lock
run: |
git config user.email "snowflake@caspervk.net"
git config user.name "snowflake"
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file
git push