-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (33 loc) · 1.05 KB
/
update.yaml
File metadata and controls
44 lines (33 loc) · 1.05 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
name: Update Flake
on:
workflow_dispatch:
schedule:
- cron: "43 3 */10 * *" # run every ten days at 3:43 am
permissions:
contents: write
pull-requests: write
jobs:
update:
name: "nix flake update"
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
with:
fetch-depth: 0
- uses: DeterminateSystems/nix-installer-action@c5a866b6ab867e88becbed4467b93592bce69f8a # v21
- name: nix flake update
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git branch -f update origin/main
git checkout update
nix flake update --commit-lock-file
git log
git push origin update
- name: Create Pull Request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
title: Update Flake
branch: update
base: main