Update flake ❄ #150
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 ❄ | |
on: | |
workflow_dispatch: | |
schedule: | |
# every wednesday at 3pm UTC | |
- cron: '0 15 * * wed' | |
jobs: | |
update-dependencies: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@V27 | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: cbley | |
extraPullNames: pre-commit-hooks | |
- name: Set author identity | |
run: | | |
git config user.email '${{ github.actor }}@users.noreply.github.com' | |
git config user.name '${{ github.actor }}' | |
- run: nix flake update --commit-lock-file | |
- name: Create Pull Request | |
id: create-pr | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: "[automation] flake update" | |
title: "[automation] flake update" | |
branch: "automation/update-flake-inputs" | |
labels: "dependencies" | |
token: "${{ secrets.PR_TOKEN }}" | |
- name: Enable Pull Request Automerge | |
run: gh pr merge --rebase --auto "${{ steps.create-pr.outputs.pull-request-number }}" | |
env: | |
GH_TOKEN: ${{ secrets.PR_TOKEN }} |