From 6499847784b95b3b78c701387388b0fb4e5ed592 Mon Sep 17 00:00:00 2001 From: JesusMtnez Date: Fri, 17 Nov 2023 05:29:20 +0100 Subject: [PATCH] feat(ci): setup update-flakes workflow --- .github/workflows/update-flakes.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 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..ceb1e3c --- /dev/null +++ b/.github/workflows/update-flakes.yml @@ -0,0 +1,31 @@ +--- +name: update-flakes + +on: + workflow_dispatch: # allows manual triggering + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - name: checkout repository + uses: actions/checkout@v4.1.1 + + - name: install Nix + uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + + - name: update flake.lock + id: update + uses: DeterminateSystems/update-flake-lock@v20 + with: + token: ${{ secrets.NIX_FLAKES_UPDATE_TOKEN }} + pr-title: "chore(flake): update flake.lock" + commit-msg: "chore(flake): update flake.lock" + branch: "update_flake" + git-author-name: "JesusMtnez[bot]" + git-author-email: "github-actions[bot]@users.noreply.github.com" + git-committer-name: "JesusMtnez[bot]" + git-committer-email: "github-actions[bot]@users.noreply.github.com"