-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (31 loc) · 1.09 KB
/
update-toolchain.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Update Toolchain
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
jobs:
update-toolchain:
name: update toolchain
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install jq
uses: dcarbone/install-jq-action@v2.1.0
- name: update lean-toolchain
id: update-toolchain
run: |
LEAN_TAG=$(curl -s "https://api.github.com/repos/leanprover/lean4/releases" | jq -r '.[0].tag_name')
echo "LEAN_TAG=$LEAN_TAG" >> $GITHUB_ENV
echo "leanprover/lean4:$LEAN_TAG" > lean-toolchain
- name: create pull request
uses: peter-evans/create-pull-request@v7
with:
commit-message: "chore: update toolchain ${{ env.LEAN_TAG }}"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: update-toolchain-${{ env.LEAN_TAG }}
delete-branch: true
title: 'chore: update toolchain ${{ env.LEAN_TAG }}'
draft: false