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-16 16:55:02 +00:00
|
|
|
- uses: cachix/install-nix-action@v17
|
2022-04-16 16:56:47 +00:00
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
substituters = https://f000.backblazeb2.com/file/cache-chir-rs/ https://cache.nixos.org/
|
|
|
|
trusted-public-keys = nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=
|
|
|
|
- run: nix flake update
|
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
|