nixos-config/.github/workflows/update.yml

19 lines
557 B
YAML

name: Update flake
on:
schedule:
- cron: "35 * * * *"
workflow_dispatch: {}
jobs:
update-flake:
name: Update flake
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
token: ${{ secrets.PUBLISH_TOKEN }}
- uses: cachix/install-nix-action@v12
- run: nix flake update --extra-experimental-features "nix-command flakes"
- run: git config user.email autoupdate@chir.rs
- run: git config user.name "Autoupdater"
- run: git commit -am "Automatic update"
- run: git push