From 37c2ec10e93eaa84aed0fa85131043b6afc4e445 Mon Sep 17 00:00:00 2001 From: Scott Morrison Date: Wed, 15 Nov 2023 11:22:48 +1100 Subject: [PATCH] chore: fix conditional syntax in pre-release.yml --- .github/workflows/pr-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-release.yml b/.github/workflows/pr-release.yml index b3fefa91c9..8f4b31b3c6 100644 --- a/.github/workflows/pr-release.yml +++ b/.github/workflows/pr-release.yml @@ -172,13 +172,13 @@ 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 != '' }} && ${{ steps.ready.outputs.mathlib_ready == 'true' }} + if: steps.workflow-info.outputs.pullRequestNumber != '' && steps.ready.outputs.mathlib_ready == 'true' run: | sudo rm -rf * # Checkout the mathlib4 repository with all branches - name: Checkout mathlib4 repository - if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }} && ${{ steps.ready.outputs.mathlib_ready == 'true' }} + if: steps.workflow-info.outputs.pullRequestNumber != '' && steps.ready.outputs.mathlib_ready == 'true' uses: actions/checkout@v3 with: repository: leanprover-community/mathlib4 @@ -187,7 +187,7 @@ jobs: fetch-depth: 0 # This ensures we check out all tags and branches. - name: Check if branch exists - if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }} && ${{ steps.ready.outputs.mathlib_ready == 'true' }} + if: steps.workflow-info.outputs.pullRequestNumber != '' && steps.ready.outputs.mathlib_ready == 'true' id: check_branch run: | git config user.name "leanprover-community-mathlib4-bot" @@ -221,6 +221,6 @@ jobs: fi - name: Push changes - if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }} && ${{ steps.ready.outputs.mathlib_ready == 'true' }} + if: steps.workflow-info.outputs.pullRequestNumber != '' && steps.ready.outputs.mathlib_ready == 'true' run: | git push origin lean-pr-testing-${{ steps.workflow-info.outputs.pullRequestNumber }}