25 lines
732 B
YAML
25 lines
732 B
YAML
name: Update flake.lock
|
|
|
|
# https://forgejo.org/docs/latest/user/actions/#onschedule
|
|
on:
|
|
- schedule:
|
|
- cron: "23 17 * * 1"
|
|
# Dumb workaround for https://codeberg.org/forgejo/forgejo/issues/2797
|
|
- issue_comment:
|
|
|
|
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
|
|
|