-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.16 KB
/
update.yaml
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
name: update-flake-lock
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update-flake-lock:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v12
# - name: Setup the magic Nix cache
# uses: DeterminateSystems/magic-nix-cache-action@v6
- name: Update flake.lock
id: update-flake-lock
uses: DeterminateSystems/update-flake-lock@v23
with:
branch: update-flake-lock
pr-title: "Update flake.lock"
# By using a PAT, GitHub workflows will run on the opened
# PR. Otherwise, GitHub workflows won't run without human
# intervention on PR's opened by a GitHub action.
token: ${{ secrets.UPDATE_FLAKE_LOCK }}
- name: Enable pull request automerge
uses: peter-evans/enable-pull-request-automerge@v2
if: ${{ steps.update-flake-lock.outputs.pull-request-number }}
with:
token: ${{ secrets.UPDATE_FLAKE_LOCK }}
pull-request-number: ${{ steps.update-flake-lock.outputs.pull-request-number }}