From 492255e2ef22ed257a2407bf9b1ff12f6c5b8505 Mon Sep 17 00:00:00 2001 From: rina Date: Sat, 20 Jan 2024 00:06:42 +1000 Subject: [PATCH] add monthly flake update. --- .github/workflows/monthly.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/monthly.yml diff --git a/.github/workflows/monthly.yml b/.github/workflows/monthly.yml new file mode 100644 index 0000000..f30b06f --- /dev/null +++ b/.github/workflows/monthly.yml @@ -0,0 +1,24 @@ +name: "update flake inputs" +on: + schedule: + - "53 15 18 * *" # AEST 1:53 am on 18th day each month + workflow_dispatch: + +jobs: + flake-update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v20 + - uses: cachix/cachix-action@v12 + with: { name: pac-nix, authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' } + + - run: | + git pull + git config user.name 'github-actions[bot]' + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + - run: | + nix flake update --commit-lock-file + - run: | + nix flake build .#all -Lv + - run: git push