Skip to content

Commit 12a70e1

Browse files
committed
chore: test ci
1 parent 2b9983b commit 12a70e1

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/update-toolchain.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,19 @@ jobs:
1717
- name: install jq
1818
uses: dcarbone/install-jq-action@v3
1919

20-
- name: update lean-toolchain
20+
- name: get toolchain tags
2121
id: toolchain-tag
2222
run: |
23-
LEAN_TAG=$(curl -s "https://api.github.com/repos/leanprover/lean4/releases" | jq -r '.[0].tag_name')
23+
REPO_TAG=$(sed 's/.*://1' lean-toolchain | tr -d '\n')
24+
LEAN_TAG=$(curl -s "https://api.github.com/repos/leanprover/lean4/releases" | jq -r '.[0].tag_name' | tr -d '\n')
25+
echo "repo_tag=$REPO_TAG" >> $GITHUB_OUTPUT
2426
echo "lean_tag=$LEAN_TAG" >> $GITHUB_OUTPUT
27+
28+
- name: update toolchain
29+
id: mk
30+
if: ${{ steps.toolchain-tag.outputs.lean_tag != steps.toolchain-tag.outputs.repo_tag }}
31+
run: |
32+
git merge nightly
2533
echo "leanprover/lean4:$LEAN_TAG" > lean-toolchain
2634
2735
- name: create pull request

lean-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
leanprover/lean4:v4.25.0-rc2
1+
leanprover/lean4:v4.25.0-rc1

0 commit comments

Comments
 (0)