diff options
| author | seth <[email protected]> | 2023-09-07 16:19:07 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-09-07 17:15:26 -0400 |
| commit | 9518d623730a362a2cf558cb77d020be8ce50bc8 (patch) | |
| tree | 8d95998e4d35e0955d8559b9e48b7a60f7766795 /.github/workflows/update-lock.yaml | |
| parent | f741b550612103dafc1b2ff405de6a816ac5d760 (diff) | |
flake/actions: replace some crane checks with pre-commit
Diffstat (limited to '.github/workflows/update-lock.yaml')
| -rw-r--r-- | .github/workflows/update-lock.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml new file mode 100644 index 0000000..9e3301d --- /dev/null +++ b/.github/workflows/update-lock.yaml @@ -0,0 +1,34 @@ +name: update flake lock + +on: + schedule: + # run every saturday + - cron: "0 0 * * 6" + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + +jobs: + update: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + + - name: update lockfile + 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: + GITHUB_TOKEN: ${{ github.token }} + PR_ID: ${{ steps.update.outputs.pull-request-number }} |
