From 9fead8a218a85391221385030d8b1f7bfe62a1d4 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 12 Nov 2023 17:06:44 -0500 Subject: feat: add nix flake for dev env --- .github/workflows/update-flake.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/update-flake.yaml (limited to '.github') 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 }} -- cgit v1.2.3