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
|
2022-04-15 18:43:49 +00:00
|
|
|
- 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"
|
2022-04-16 07:43:54 +00:00
|
|
|
- run: git commit -am "Automatic update" || true
|
2022-04-15 18:48:55 +00:00
|
|
|
- run: git push
|