File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments