From 5aa2e6c0c6e4c73d93307e9f70803237006afb28 Mon Sep 17 00:00:00 2001 From: seth Date: Wed, 20 Dec 2023 20:27:18 -0500 Subject: go back to lume --- .github/workflows/update-flake.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/update-flake.yaml (limited to '.github/workflows/update-flake.yaml') diff --git a/.github/workflows/update-flake.yaml b/.github/workflows/update-flake.yaml new file mode 100644 index 0000000..0e6158c --- /dev/null +++ b/.github/workflows/update-flake.yaml @@ -0,0 +1,36 @@ +name: Update flake.lock + +on: + schedule: + # run every saturday + - cron: "0 0 * * 6" + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + + permissions: + contents: write + pull-requests: write + + steps: + - uses: actions/checkout@v4 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v9 + + - name: Update lockfile & make PR + uses: DeterminateSystems/update-flake-lock@v20 + id: update + with: + commit-msg: "flake: update inputs" + pr-title: "flake: update inputs" + token: ${{ github.token }} + + - name: Enable auto-merge + shell: bash + run: gh pr merge --rebase "$PR_ID" + env: + GH_TOKEN: ${{ github.token }} + PR_ID: ${{ steps.update.outputs.pull-request-number }} -- cgit v1.2.3