diff options
| author | seth <[email protected]> | 2023-12-20 20:27:18 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-21 02:34:37 +0000 |
| commit | 5aa2e6c0c6e4c73d93307e9f70803237006afb28 (patch) | |
| tree | f26a67452e2d4a4ed30506e533ac17cc95184fac /.github/workflows/update-flake.yaml | |
| parent | 2a6f22fc1f1939b102fb8925bf04914a4b553e17 (diff) | |
go back to lume
Diffstat (limited to '.github/workflows/update-flake.yaml')
| -rw-r--r-- | .github/workflows/update-flake.yaml | 36 |
1 files changed, 36 insertions, 0 deletions
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 }} |
