Skip to content

Commit 45d5ba5

Browse files
authored
feat: mo update critical flake inputs auto pr (#2086)
* feat: mo update critical, bi monthly non critical, update together, all follow nixpkgs input * fix: nix-eval-jobs bundles own nix
1 parent 62a1bdc commit 45d5ba5

2 files changed

Lines changed: 98 additions & 0 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Update Flake Lock (Non-Critical)
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 1 */2 *'
7+
8+
jobs:
9+
update-flake-lock-non-critical:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
17+
18+
- name: Install Nix
19+
uses: ./.github/actions/nix-install-ephemeral
20+
21+
- name: Update non-critical flake inputs
22+
run: |
23+
nix flake update \
24+
devshell \
25+
flake-parts \
26+
flake-utils \
27+
git-hooks \
28+
nix-darwin \
29+
nix-editor \
30+
nix2container \
31+
treefmt-nix
32+
33+
- name: Create Pull Request
34+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
35+
with:
36+
token: ${{ secrets.GITHUB_TOKEN }}
37+
commit-message: "chore: update flake.lock non-critical inputs (bimonthly)"
38+
title: "chore: update flake.lock non-critical inputs (bimonthly)"
39+
body: |
40+
Automated bimonthly update of non-critical flake inputs:
41+
- `devshell`
42+
- `flake-parts`
43+
- `flake-utils`
44+
- `git-hooks`
45+
- `nix-darwin`
46+
- `nix-editor`
47+
- `nix2container`
48+
- `treefmt-nix`
49+
branch: auto-update-flake-lock-non-critical
50+
base: develop
51+
labels: |
52+
dependencies
53+
automated
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Update Flake Lock
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 1 * *'
7+
8+
jobs:
9+
update-flake-lock:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
17+
18+
- name: Install Nix
19+
uses: ./.github/actions/nix-install-ephemeral
20+
21+
- name: Update critical flake inputs
22+
run: |
23+
nix flake update \
24+
nixpkgs \
25+
rust-overlay \
26+
multigres \
27+
nix-eval-jobs
28+
29+
- name: Create Pull Request
30+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
31+
with:
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
commit-message: "chore: update flake.lock (monthly)"
34+
title: "chore: update flake.lock (monthly)"
35+
body: |
36+
Automated monthly update of critical flake inputs:
37+
- `nixpkgs` (nixos-unstable channel)
38+
- `rust-overlay`
39+
- `multigres`
40+
- `nix-eval-jobs`
41+
branch: auto-update-flake-lock
42+
base: develop
43+
labels: |
44+
dependencies
45+
automated

0 commit comments

Comments
 (0)