-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.13 KB
/
update-flake-lock.yml
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
# --- Periodically update flake inputs in flake.lock
name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering from the Actions UI
schedule:
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
jobs:
update-flake-lock:
runs-on: ubuntu-latest
steps:
- name: "Checking out repository..."
uses: actions/checkout@v4
- name: "Installing and configuring the nix package manager..."
uses: DeterminateSystems/nix-installer-action@main
with:
extra-conf: |
accept-flake-config = true
- name: "Setting up magic-nix-cache..."
uses: DeterminateSystems/magic-nix-cache-action@main
- name: "Updating flake.lock..."
uses: DeterminateSystems/update-flake-lock@main
with:
pr-title: "Automated action - Update flake.lock"
pr-labels: |
dependencies
automated
# NOTE You can use a personal access token to identify
# as a concrete user, this may be useful when you want to
# trigger additional CI actions.
#
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}