Skip to content

Commit 2a2228f

Browse files
Merge pull request cri-o#7332 from saschagrunert/nixpkgs-pr
Add nixpkgs update cron
2 parents ece7f27 + f532cbd commit 2a2228f

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

.github/workflows/nixpkgs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: nixpkgs
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * 0' # At 00:00 on Sunday
6+
env:
7+
NIX_VERSION: '2.18.0'
8+
jobs:
9+
update-nixpkgs:
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: cachix/install-nix-action@v23
17+
with:
18+
install_url: https://releases.nixos.org/nix/nix-${{ env.NIX_VERSION }}/install
19+
- run: make nixpkgs
20+
- name: Check workspace
21+
id: create_pr
22+
run: |
23+
if [[ $(git diff --stat) != '' ]]; then
24+
echo "create_pr=true" >> "$GITHUB_OUTPUT"
25+
fi
26+
- name: Create PR if required
27+
uses: peter-evans/create-pull-request@v5
28+
if: ${{ steps.create_pr.outputs.create_pr == 'true' }}
29+
with:
30+
commit-message: Update nixpkgs
31+
title: 'Update nixpkgs'
32+
body: Update nixpkgs to the latest HEAD commit.
33+
labels: kind/ci, release-note-none, ok-to-test
34+
branch-suffix: timestamp
35+
branch: update-nixpkgs
36+
delete-branch: true
37+
signoff: true

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
pull_request:
1010
env:
1111
GO_VERSION: '1.21'
12-
NIX_VERSION: '2.15.1'
12+
NIX_VERSION: '2.18.0'
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest

dependencies.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ dependencies:
9292
match: ZEITGEIST_VERSION
9393

9494
- name: nix
95-
version: 2.15.1
95+
version: 2.18.0
9696
refPaths:
9797
- path: .github/workflows/test.yml
9898
match: NIX_VERSION
99+
- path: .github/workflows/nixpkgs.yml
100+
match: NIX_VERSION
99101

100102
- name: bom
101103
version: 0.5.1

0 commit comments

Comments
 (0)