Skip to content

update-flake-lock

update-flake-lock #26

name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
jobs:
update-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v24
- name: Update flake.lock
id: update-flake-lock
uses: DeterminateSystems/update-flake-lock@v20
with:
token: ${{ secrets.PAT }}
pr-title: "Update flake.lock"
pr-labels: |
dependencies
automated
pr-body: |
Automated changes by the [update-flake-lock](https://github.com/DeterminateSystems/update-flake-lock) GitHub Action.
```
{{ env.GIT_COMMIT_MESSAGE }}
```
- name: Enable Pull Request Automerge
run: gh pr merge --rebase --auto "${{ steps.update-flake-lock.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ secrets.PAT }}