auto_update_flake #1392
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "auto_update_flake" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 20 * * *" | |
jobs: | |
update_flake: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install nix | |
uses: cachix/install-nix-action@v30 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- name: update flake | |
run: | | |
git config --local user.email "serowy@hotmail.com" | |
git config --local user.name "aserowy" | |
nix flake update | |
- name: check flake | |
run: nix flake check -v --show-trace | |
timeout-minutes: 90 | |
- name: commit and push changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: updated flake inputs |