nixos/.github/workflows/flake-update.yaml
Torjus Håkestad 7450cea426
All checks were successful
Check actions / check-actions-actionlint (push) Successful in 45s
Check actions / check-actions-yamllint (push) Successful in 56s
Run nix flake check / flake-check (push) Successful in 2m5s
Improve workflows
2024-10-03 21:19:53 +02:00

26 lines
636 B
YAML

---
name: Periodic flake update
on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 */2 * * *"
permissions:
contents: write
jobs:
flake-update:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:runner-latest
steps:
- uses: actions/checkout@v3
- 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