From 8faa242f21648e52a6bbdfa803fd4ea1b0e347e0 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 18 Dec 2023 01:28:42 -0500 Subject: port to nixvim --- .github/workflows/update-lock.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/update-lock.yaml (limited to '.github/workflows/update-lock.yaml') diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml new file mode 100644 index 0000000..8c14410 --- /dev/null +++ b/.github/workflows/update-lock.yaml @@ -0,0 +1,30 @@ +name: Update flake.lock + +on: + schedule: + # run every saturday at 0:00 utc + - cron: "0 0 * * 6" + workflow_dispatch: + +jobs: + update: + runs-on: ubuntu-latest + + 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: + token: ${{ secrets.MERGE_TOKEN }} + + - name: Enable auto-merge + shell: bash + run: gh pr merge --auto --rebase "$PR_ID" + env: + GITHUB_TOKEN: ${{ secrets.MERGE_TOKEN }} + PR_ID: ${{ steps.update.outputs.pull-request-number }} -- cgit v1.2.3