Files
komorebi/.github/workflows/update-flake-lock.yaml
T
LGUG2Z 166e5f353a ci(cachix): write to the cache on every push, read it in every job that runs nix
The write token goes to cachix-action on a push (master and the temporary komomono
trigger, without naming either), a manual run and a schedule; a pull request, a fork
and the merge queue only read. The flake-lock update goes through the nix action too,
and the nixpkgs canary reads the cache but never pushes (push: "false" replaces
cache: "false").

docs(ci): the write rule, the read-only path and a checklist for the first push to
komomono.
2026-11-05 16:40:29 -08:00

31 lines
1.1 KiB
YAML

# komorebi tracks the tip of nixpkgs-unstable, so the lock moves every week. The pull request runs
# the ladder of ci.yaml like any other, which is what says whether the new nixpkgs still builds. The
# lock is updated with the token of the repository: a pull request opened with it does not start
# other workflows, so close and reopen it (or push to its branch as a person) to run the ladder.
name: update-flake-lock
on:
schedule:
- cron: "0 3 * * 1" # Every Monday at 03:00 UTC
workflow_dispatch:
jobs:
update:
if: github.repository == 'LGUG2Z/komorebi'
runs-on: ubuntu-24.04
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/nix
with:
cachix-cache: ${{ vars.CACHIX_CACHE }}
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
- uses: DeterminateSystems/update-flake-lock@v29
with:
commit-msg: "chore(deps): flake.lock: Update"
pr-title: "chore(deps): flake.lock: Update"
pr-assignees: LGUG2Z