beads/.github/workflows/update-flake-lock.yml
emma ae28719ef8 fix(ci): add write permissions to update-flake-lock workflow (PR #2642)
The workflow needs contents:write (push branch) and pull-requests:write
(create PR) for peter-evans/create-pull-request to function.

Fixes #2630

Co-Authored-By: DreadPirateRobertz <DreadPirateRobertz@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 23:24:17 -07:00

26 lines
615 B
YAML

name: "Update flake.lock"
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
permissions:
contents: write
pull-requests: write
jobs:
update-flake-lock:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@v3
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "chore(nix): update flake.lock"
pr-labels: |
dependencies
nix