From 8f3b590436dcd905a561a86d481ce8995880cd2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mentine=20Urquizar?= Date: Thu, 1 Sep 2022 13:34:34 +0200 Subject: [PATCH] Move if conditions to the steps and not to the whole job --- .github/workflows/publish-binaries.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-binaries.yml b/.github/workflows/publish-binaries.yml index 0c13140c9..65d4746ba 100644 --- a/.github/workflows/publish-binaries.yml +++ b/.github/workflows/publish-binaries.yml @@ -11,13 +11,13 @@ jobs: name: Check the version validity runs-on: ubuntu-latest # No need to check the version for dry run (cron) - if: github.event_name != 'schedule' steps: - uses: actions/checkout@v2 # Check if the tag has the v.. format. # If yes, it means we are publishing an official release. # If no, we are releasing a RC, so no need to check the version. - name: Check tag format + if: github.event_name != 'schedule' id: check-tag-format run: | escaped_tag=$(printf "%q" ${{ github.ref_name }}) @@ -28,7 +28,7 @@ jobs: echo ::set-output name=stable::false fi - name: Check release validity - if: steps.check-tag-format.outputs.stable == 'true' + if: github.event_name != 'schedule' && steps.check-tag-format.outputs.stable == 'true' run: bash .github/scripts/check-release.sh publish: