Skip to content

Commit 359967a

Browse files
committed
fix: sync scheduled-bump-cargo-lock with components
1 parent 0df6279 commit 359967a

1 file changed

Lines changed: 20 additions & 8 deletions

File tree

.github/workflows/scheduled-bump-cargo-lock.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,38 @@ permissions:
1616
jobs:
1717
bump-cargo-lock:
1818
runs-on: ubuntu-24.04
19+
env:
20+
DEVSHELL: .#noObelisk
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
include:
25+
- name: compatible
26+
cmd: cargo upgrade
27+
- name: incompatible
28+
cmd: cargo upgrade --incompatible
29+
1930
steps:
20-
- uses: actions/checkout@v6
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
2132
with:
2233
fetch-depth: 1
2334

2435
- name: Generate Unique Branch Name
2536
id: branch-name
26-
run: echo "branch_name=bump-cargo-lock-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
37+
run: echo "branch_name=bump-cargo-lock-${{ matrix.name }}-$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_OUTPUT
2738

28-
- uses: nixbuild/nix-quick-install-action@v34
39+
- uses: nixbuild/nix-quick-install-action@2c9db80fb984ceb1bcaa77cdda3fdf8cfba92035
2940
with:
3041
github_access_token: ${{ secrets.GITHUB_TOKEN }}
31-
- name: Populate the nix store without Obelisk
42+
43+
- name: Populate the nix store
3244
run: |
33-
nix develop .#noObelisk --command echo
45+
nix develop $DEVSHELL --command echo
3446
3547
- name: Bump Cargo.lock, Cargo.toml
3648
run: |
37-
nix develop .#noObelisk --command cargo upgrade --incompatible
38-
nix develop .#noObelisk --command cargo update
49+
nix develop $DEVSHELL --command cargo update
50+
nix develop $DEVSHELL --command ${{ matrix.cmd }}
3951
4052
- name: Configure Git
4153
run: |
@@ -57,7 +69,7 @@ jobs:
5769
-H "Authorization: Bearer $GITHUB_TOKEN" \
5870
https://api.github.com/repos/$OWNER/$REPO/pulls \
5971
-d '{
60-
"title": "Bump Rust dependencies",
72+
"title": "Bump '${{ matrix.name }}' dependencies",
6173
"head": "'${{ steps.branch-name.outputs.branch_name }}'",
6274
"base": "main",
6375
"body": ""

0 commit comments

Comments
 (0)