chore: add missing if statements to pr-release.yml workflow (#2639)
This commit is contained in:
parent
00e981edcd
commit
41ed5ddf57
1 changed files with 3 additions and 0 deletions
3
.github/workflows/pr-release.yml
vendored
3
.github/workflows/pr-release.yml
vendored
|
|
@ -81,6 +81,7 @@ jobs:
|
|||
# Mathlib CI will be responsible for reporting back success or failure
|
||||
# to the PR comments asynchronously.
|
||||
- name: Cleanup workspace
|
||||
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }}
|
||||
run: |
|
||||
sudo rm -rf *
|
||||
|
||||
|
|
@ -94,6 +95,7 @@ jobs:
|
|||
fetch-depth: 0
|
||||
|
||||
- name: Check if branch exists
|
||||
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }}
|
||||
id: check_branch
|
||||
run: |
|
||||
git config user.name "leanprover-community-mathlib4-bot"
|
||||
|
|
@ -119,5 +121,6 @@ jobs:
|
|||
fi
|
||||
|
||||
- name: Push changes
|
||||
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }}
|
||||
run: |
|
||||
git push origin lean-pr-testing-${{ steps.workflow-info.outputs.pullRequestNumber }}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue