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

21 lines
629 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
- 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"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PUBLISH_TOKEN }}
branch: main