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

27 lines
655 B
YAML
Raw Normal View History

2024-10-03 19:19:53 +00:00
---
2024-10-02 22:57:17 +00:00
name: Periodic flake update
2024-10-03 19:19:53 +00:00
on: # yamllint disable-line rule:truthy
2024-10-02 22:57:17 +00:00
schedule:
2024-10-03 19:19:53 +00:00
- cron: "0 */2 * * *"
2024-10-02 22:57:17 +00:00
2024-10-03 19:19:53 +00:00
permissions:
contents: write
2024-10-02 22:57:17 +00:00
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'
2024-10-04 07:21:54 +00:00
git pull
2024-10-02 22:57:17 +00:00
- name: flake update
run: nix flake update --commit-lock-file
- name: push
run: git push