Skip to content

Commit 23cc8f7

Browse files
authored
chore: re-pin crunchy to 0.2.2 after weekly cargo update (#15846)
1 parent 76633a5 commit 23cc8f7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/dependencies.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,39 @@ jobs:
1818
uses: ithacaxyz/ci/.github/workflows/cargo-update-pr.yml@main
1919
secrets:
2020
token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
# re‑pin `crunchy` to version 0.2.2 since 0.2.3 is broken.
23+
# The Cargo.toml file states we want `=0.2.2` however cargo update
24+
# is not respecting this.
25+
# For underlying issue, See: https://github.com/eira-fransham/crunchy/issues/13
26+
repin-crunchy:
27+
needs: update
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
# The ithaca re-usable workflow will create a PR on
32+
# branch `cargo-update`. So we re-check that branch out.
33+
- uses: actions/checkout@v4
34+
with:
35+
ref: cargo-update
36+
fetch-depth: 0
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- uses: dtolnay/rust-toolchain@master
40+
with:
41+
toolchain: stable
42+
43+
- name: Re-pin crunchy to 0.2.2
44+
run: cargo update -p crunchy --precise 0.2.2
45+
46+
- name: Commit & push if Cargo.lock changed
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
run: |
50+
if ! git diff --quiet -- Cargo.lock; then
51+
git config user.name "github-actions[bot]"
52+
git config user.email "github-actions[bot]@users.noreply.github.com"
53+
git add Cargo.lock
54+
git commit -m "ci: re‑pin crunchy to 0.2.2"
55+
git push origin cargo-update
56+
fi

0 commit comments

Comments
 (0)