check for flake updates #620
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: check for flake updates | |
on: { workflow_dispatch, schedule: [cron: '0 0 * * *'] } | |
jobs: | |
check-for-updates: | |
runs-on: ubuntu-24.04 | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
steps: | |
- uses: actions/[email protected] | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: nix flake update | |
- uses: peter-evans/[email protected] | |
id: pr | |
with: | |
delete-branch: true | |
author: jacobi petrucciani <[email protected]> | |
title: automatic update | |
commit-message: automatic update | |
branch: automatic-update | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
- if: ${{ steps.pr.outputs.pull-request-number }} | |
run: gh pr merge --auto --squash ${{ steps.pr.outputs.pull-request-url }} |