diff options
| author | seth <[email protected]> | 2023-11-12 17:06:44 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-12 17:06:44 -0500 |
| commit | 9fead8a218a85391221385030d8b1f7bfe62a1d4 (patch) | |
| tree | 5c0e727dde961743c7e17c024135a4c3ab42cc81 /.github | |
| parent | 4b498cef6add2e7342a24f7598ed47b32086ae54 (diff) | |
feat: add nix flake for dev env
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/update-flake.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/update-flake.yaml b/.github/workflows/update-flake.yaml new file mode 100644 index 0000000..3cdc03d --- /dev/null +++ b/.github/workflows/update-flake.yaml @@ -0,0 +1,31 @@ +name: update flake.lock + +on: + schedule: + - cron: "0 0 * * 6" + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + + permissions: + contents: write + pull-requests: write + + steps: + - uses: actions/checkout@v4 + - uses: nixbuild/nix-quick-install-action@v26 + + - name: update lockfile + uses: DeterminateSystems/update-flake-lock@v20 + id: update + with: + 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 }} |
