File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,15 +13,29 @@ jobs:
1313
1414 - name : checkout
1515 uses : actions/checkout@v5
16+ with :
17+ fetch-depth : 0
1618
1719 - name : install jq
1820 uses : dcarbone/install-jq-action@v3
1921
20- - name : update lean- toolchain
22+ - name : get toolchain tags
2123 id : toolchain-tag
2224 run : |
23- LEAN_TAG=$(curl -s "https://api.github.com/repos/leanprover/lean4/releases" | jq -r '.[0].tag_name')
25+ REPO_TAG=$(sed 's/.*://1' lean-toolchain | tr -d '\n')
26+ LEAN_TAG=$(curl -s "https://api.github.com/repos/leanprover/lean4/releases" | jq -r '.[0].tag_name' | tr -d '\n')
27+ echo "repo_tag=$REPO_TAG" >> $GITHUB_OUTPUT
2428 echo "lean_tag=$LEAN_TAG" >> $GITHUB_OUTPUT
29+
30+ - name : update toolchain
31+ id : update
32+ if : ${{ steps.toolchain-tag.outputs.lean_tag != steps.toolchain-tag.outputs.repo_tag }}
33+ env :
34+ LEAN_TAG : ${{ steps.toolchain-tag.outputs.lean_tag }}
35+ run : |
36+ git config user.name "${{ github.actor }}"
37+ git config user.email "${{ github.actor_id}}+${{ github.actor }}@users.noreply.github.com"
38+ git merge -X theirs origin/nightly
2539 echo "leanprover/lean4:$LEAN_TAG" > lean-toolchain
2640
2741 - name : create pull request
Original file line number Diff line number Diff line change 1- leanprover/lean4:v4.25.0-rc2
1+ leanprover/lean4:v4.25.0-rc1
You can’t perform that action at this time.
0 commit comments