diff options
| author | seth <[email protected]> | 2023-12-18 01:28:42 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-18 02:18:35 -0500 |
| commit | 8faa242f21648e52a6bbdfa803fd4ea1b0e347e0 (patch) | |
| tree | eff6694cefb2f821bf19b0d8cb3d97bf48cb15b9 /.github/workflows/update-lock.yaml | |
| parent | 9fe8afd0c5f2b439176728d8863570bf22614dbd (diff) | |
port to nixvim
Diffstat (limited to '.github/workflows/update-lock.yaml')
| -rw-r--r-- | .github/workflows/update-lock.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
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 }} |
