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

20 lines
565 B
YAML
Raw Normal View History

2022-04-15 18:25:17 +00:00
name: Update flake
on:
schedule:
- cron: "35 * * * *"
2022-04-15 18:43:00 +00:00
workflow_dispatch: {}
2022-04-15 18:25:17 +00:00
jobs:
update-flake:
name: Update flake
runs-on: ubuntu-latest
steps:
2022-04-15 19:56:22 +00:00
- uses: actions/checkout@v3
2022-04-15 18:48:55 +00:00
with:
token: ${{ secrets.PUBLISH_TOKEN }}
2022-04-15 18:25:17 +00:00
- uses: cachix/install-nix-action@v12
- run: nix flake update --extra-experimental-features "nix-command flakes"
2022-04-15 18:25:17 +00:00
- run: git config user.email autoupdate@chir.rs
- run: git config user.name "Autoupdater"
- run: git commit -am "Automatic update" || true
2022-04-15 18:48:55 +00:00
- run: git push