Skip to content

Commit 7194410

Browse files
committed
fix: sync scheduled-bump-cargo-lock with components
1 parent d5c0bbb commit 7194410

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

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

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +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 }}
3142

32-
- name: Populate the nix store without Obelisk
43+
- name: Populate the nix store
3344
run: |
34-
nix develop .#noObelisk --command echo
45+
nix develop $DEVSHELL --command echo
3546
3647
- name: Bump Cargo.lock, Cargo.toml
3748
run: |
38-
nix develop .#noObelisk --command cargo upgrade --incompatible
39-
nix develop .#noObelisk --command cargo update
49+
nix develop $DEVSHELL --command cargo update
50+
nix develop $DEVSHELL --command ${{ matrix.cmd }}
4051
4152
- name: Configure Git
4253
run: |
@@ -58,7 +69,7 @@ jobs:
5869
-H "Authorization: Bearer $GITHUB_TOKEN" \
5970
https://api.github.com/repos/$OWNER/$REPO/pulls \
6071
-d '{
61-
"title": "Bump Rust dependencies",
72+
"title": "Bump '${{ matrix.name }}' dependencies",
6273
"head": "'${{ steps.branch-name.outputs.branch_name }}'",
6374
"base": "main",
6475
"body": ""

0 commit comments

Comments
 (0)