Skip to content

Commit 06343db

Browse files
committed
chore: test ci
1 parent 2b9983b commit 06343db

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/update-toolchain.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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

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)