Skip to content

Commit 6786e52

Browse files
authored
Merge pull request #1489 from NixOS/ci
github: update test workflow to use latest nix & add update-flakes action
2 parents ed500ca + 9efe38c commit 6786e52

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
15-
- uses: cachix/install-nix-action@v17
15+
- uses: cachix/install-nix-action@v31
1616
#- run: nix flake check
1717
- run: nix-build -A checks.x86_64-linux.build -A checks.x86_64-linux.validate-openapi
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Update Flakes"
2+
on:
3+
schedule:
4+
# Run weekly on Monday at 00:00 UTC
5+
- cron: '0 0 * * 1'
6+
workflow_dispatch:
7+
jobs:
8+
update-flakes:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: cachix/install-nix-action@v31
16+
- name: Update flake inputs
17+
run: nix flake update
18+
- name: Create Pull Request
19+
uses: peter-evans/create-pull-request@v5
20+
with:
21+
commit-message: "flake.lock: Update"
22+
title: "Update flake inputs"
23+
body: |
24+
Automated flake input updates.
25+
26+
This PR was automatically created by the update-flakes workflow.
27+
branch: update-flakes
28+
delete-branch: true

0 commit comments

Comments
 (0)