Skip to content

Update flake ❄

Update flake ❄ #166

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@v4
- uses: cachix/install-nix-action@v30
- 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@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 }}