26 lines
702 B
YAML
26 lines
702 B
YAML
|
name: Update flake.lock
|
||
|
|
||
|
on:
|
||
|
# https://forgejo.org/docs/latest/user/actions/#onschedule
|
||
|
schedule:
|
||
|
# - cron: "23 17 * * 1"
|
||
|
- cron: "*/1 * * * *"
|
||
|
|
||
|
jobs:
|
||
|
update:
|
||
|
runs-on: debian-latest
|
||
|
container:
|
||
|
image: docker.io/nixos/nix:2.21.0
|
||
|
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
|
||
|
|