From 27dbb18788d807117b4ab2ab3c63713460665c1f Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 27 Nov 2023 17:45:50 -0500 Subject: actions: reformat workflows --- .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..f27539f --- /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: nixbuild/nix-quick-install-action@v26 + + - name: Update and create 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 --auto --rebase "$PR_ID" + env: + GH_TOKEN: ${{ github.token }} + PR_ID: ${{ steps.update.outputs.pull-request-number }} -- cgit v1.2.3