update-flake-lock #894
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: update-flake-lock | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
update-flake-lock: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v12 | |
# - name: Setup the magic Nix cache | |
# uses: DeterminateSystems/magic-nix-cache-action@v6 | |
- name: Update flake.lock | |
id: update-flake-lock | |
uses: DeterminateSystems/update-flake-lock@v23 | |
with: | |
branch: update-flake-lock | |
pr-title: "Update flake.lock" | |
# By using a PAT, GitHub workflows will run on the opened | |
# PR. Otherwise, GitHub workflows won't run without human | |
# intervention on PR's opened by a GitHub action. | |
token: ${{ secrets.UPDATE_FLAKE_LOCK }} | |
- name: Enable pull request automerge | |
uses: peter-evans/enable-pull-request-automerge@v2 | |
if: ${{ steps.update-flake-lock.outputs.pull-request-number }} | |
with: | |
token: ${{ secrets.UPDATE_FLAKE_LOCK }} | |
pull-request-number: ${{ steps.update-flake-lock.outputs.pull-request-number }} |