From 4235ab56d53f68fb73bad772a7a57a2545bd009f Mon Sep 17 00:00:00 2001 From: "Shiny." Date: Wed, 20 Nov 2024 14:09:11 -0800 Subject: [PATCH] fix(gha): release verification fix for validation of release please output validation and checking if it is actually equal to true --- .github/workflows/cd.release.yml | 33 +++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cd.release.yml b/.github/workflows/cd.release.yml index a797203f..03c63de7 100644 --- a/.github/workflows/cd.release.yml +++ b/.github/workflows/cd.release.yml @@ -24,6 +24,11 @@ jobs: with: config-file: release-please-config.json manifest-file: .release-please-manifest.json + - + name: Release Please Outputs + if: steps.release-please.outcome == 'success' + run: | + echo ${{ steps.release-please.outputs }} - name: Dispatch Edge Build # Run this step only if the release-please completes successfully @@ -40,17 +45,19 @@ jobs: "sha": "${{ steps.release-please.outputs.sha }}" } - - name: Dispatch Release Build + name: Dispatch Skaha Release Build # Run this step only if the release-please completes successfully - if: ${{ steps.release-please.outputs.releases_created }} - uses: peter-evans/repository-dispatch@v3.0.0 - with: - repository: opencadc/science-platform - event-type: release-build - token: ${{ secrets.GITHUB_TOKEN }} - client-payload: |- - { - "releases_created": "${{ steps.release-please.outputs.releases_created }}", - "tag_name": "${{ steps.release-please.outputs.tag_name }}", - "sha": "${{ steps.release-please.outputs.sha }}" - } + if: ${{ steps.release-please.outputs.releases_created == 'true' }} + run: | + echo "Release Build currently Disabled" + # uses: peter-evans/repository-dispatch@v3.0.0 + # with: + # repository: opencadc/science-platform + # event-type: release-build + # token: ${{ secrets.GITHUB_TOKEN }} + # client-payload: |- + # { + # "releases_created": "${{ steps.release-please.outputs.releases_created }}", + # "tag_name": "${{ steps.release-please.outputs.tag_name }}", + # "sha": "${{ steps.release-please.outputs.sha }}" + # }