Skip to content

Update flake ❄

Update flake ❄ #173

Workflow file for this run

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30
- uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # 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@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7
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 }}