diff --git a/.github/workflows/release-checks.yml b/.github/workflows/release-checks.yml index 474a0b7b26..ac27b9fe4e 100644 --- a/.github/workflows/release-checks.yml +++ b/.github/workflows/release-checks.yml @@ -13,16 +13,16 @@ jobs: check-validate-and-build-success: runs-on: ubuntu-latest steps: - - name: Check Failure - run: | - if ${{ github.event.workflow_run.conclusion == 'success' }} ; then - echo "SUCCESS: validate-and-build.yml ran successfully. Continue" - exit 0 - else - echo "FAIL: validate-and-build.yml DID NOT run successfully. Terminating..." - exit 1 - fi - + - if: github.event.workflow_run.conclusion != 'success' + name: Abort if failed + run: | + echo "FAIL: validate-and-build.yml DID NOT run successfully. Terminating..." + exit 1 + - name: Print Success + run: | + echo "SUCCESS: validate-and-build.yml ran successfully. Continue" + exit 0 + #Enusre that we are running on a tag. There is no good way to see if this was #triggered from a tag/release, so we use the creation of an aritifact in the diff --git a/.github/workflows/validate-and-build.yml b/.github/workflows/validate-and-build.yml index c3255833a5..bdaf0c1f93 100644 --- a/.github/workflows/validate-and-build.yml +++ b/.github/workflows/validate-and-build.yml @@ -272,4 +272,4 @@ jobs: with: name: tag-canary path: | - tag-canary.txt \ No newline at end of file + build/tag-canary.txt \ No newline at end of file