From 8a1cabe7746c96c1791bbf4b59457faed335712a Mon Sep 17 00:00:00 2001 From: JesusMtnez Date: Sun, 30 Jul 2023 07:08:49 +0200 Subject: [PATCH] ci(flake): setup update nix flakes workflow --- .github/workflows/update-flakes.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/update-flakes.yml diff --git a/.github/workflows/update-flakes.yml b/.github/workflows/update-flakes.yml new file mode 100644 index 0000000..9ec32ac --- /dev/null +++ b/.github/workflows/update-flakes.yml @@ -0,0 +1,24 @@ +--- +name: update-flake +on: + workflow_dispatch: # allows manual triggering + schedule: + - cron: '0 4 * * 1' # runs weekly on Monday at 04:00 UTC + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v3.5.3 + + - name: install Nix + uses: cachix/install-nix-action@v22 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + + - name: update flake.lock + uses: DeterminateSystems/update-flake-lock@v19 + with: + token: ${{ secrets.NIX_FLAKES_UPDATE_TOKEN }}