-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (46 loc) · 1.74 KB
/
Copy pathupdate-flake-lock.yml
File metadata and controls
51 lines (46 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Update flake.lock
on:
workflow_dispatch:
inputs:
flake-inputs:
description: "Space-separated flake inputs to update; empty updates all."
type: string
default: ""
# Reusable: ix (and any other indexable-inc repo) calls this same job via
# `uses: indexable-inc/index/.github/workflows/update-flake-lock.yml@main`
# so the flake-bump mechanics live in one place. The caller supplies the
# schedule and the contents/PR permissions. A caller whose flake has private
# inputs the GitHub-hosted runner cannot fetch passes `flake-inputs` to
# update only the public ones (e.g. ix scopes to `index`).
workflow_call:
inputs:
flake-inputs:
description: "Space-separated flake inputs to update; empty updates all."
type: string
default: ""
schedule:
- cron: "17 * * * *"
permissions:
contents: read
jobs:
update-flake-lock:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install Determinate Nix
uses: DeterminateSystems/determinate-nix-action@bafaa638b9d5ec0e7e3ac1a7fc80453ef1fd265f # v3
- name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@834c491b2ece4de0bbd00d85214bb5e83b4da5c6 # v28
with:
base: main
branch: update-flake-lock
commit-msg: "flake.lock: update"
pr-title: "Update Nix flake inputs"
# Empty for schedule/dispatch on index (all inputs public); a caller
# scopes this to avoid fetching private inputs it can't auth for.
inputs: ${{ inputs.flake-inputs }}