Skip to content

Commit d76c217

Browse files
committed
CI: Robustify workflow
Make sure to use the latest version of each action. Add preventive `mkdir -p` before each `mv`.
1 parent da0f82e commit d76c217

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/push_master.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,26 @@ jobs:
2626
run: |
2727
! (find LeanCamCombi -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import Mathlib$')
2828
29-
3029
build_project:
3130
runs-on: ubuntu-latest
3231
name: Build project
3332
steps:
3433
- name: Checkout project
35-
uses: actions/checkout@v2
34+
uses: actions/checkout@v4
3635

3736
- name: Copy README.md to website/index.md
3837
run: cp README.md website/index.md
3938

4039
- name: Check LeanCamCombi.Mathlib only imports from Mathlib or LeanCamCombi.Mathlib
41-
run: |
42-
python3 scripts/check_mathlib_imports.py
40+
run: python3 scripts/check_mathlib_imports.py
4341

4442
- name: Upstreaming dashboard
4543
run: |
4644
mkdir -p website/_includes
4745
python3 scripts/upstreaming_dashboard.py
4846
4947
- name: Install elan
50-
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain leanprover/lean4:4.0.0
48+
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain leanprover/lean4:4.15.0
5149

5250
- name: Get cache
5351
run: ~/.elan/bin/lake exe cache get || true
@@ -87,7 +85,9 @@ jobs:
8785
# inv all
8886

8987
- name: Copy documentation to `website/docs`
90-
run: mv docs/build website/docs
88+
run: |
89+
mkdir -p website/docs
90+
mv docs/build website/docs
9191
9292
- name: Bundle dependencies
9393
uses: ruby/setup-ruby@v1

0 commit comments

Comments
 (0)