nixos-servers/.github/workflows/flake-update.yaml

28 lines
670 B
YAML
Raw Permalink Normal View History

2024-10-03 19:43:34 +00:00
---
name: Periodic flake update
on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 0 * * *"
permissions:
contents: write
jobs:
flake-update:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- uses: actions/checkout@v3
2024-10-07 21:42:28 +00:00
with:
ref: master
2024-10-03 19:43:34 +00:00
- uses: cachix/install-nix-action@v27
- name: configure git
run: |
git config --global user.name 'torjus-bot'
git config --global user.email 'torjus-bot@git.t-juice.club'
- name: flake update
run: nix flake update --commit-lock-file
- name: push
run: git push