This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
update-flake-lock #687
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 6 * * *' | |
jobs: | |
update-flake-lock: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v11 | |
- name: Update flake.lock | |
id: update-flake-lock | |
uses: DeterminateSystems/update-flake-lock@v21 | |
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 }} |