Skip to content

Commit

Permalink
fix(gha): release verification
Browse files Browse the repository at this point in the history
fix for validation of release please output validation and checking if it is actually equal to true
  • Loading branch information
shinybrar authored Nov 20, 2024
1 parent 5077918 commit 4235ab5
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions .github/workflows/cd.release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
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/[email protected]
# 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 }}"
# }

0 comments on commit 4235ab5

Please sign in to comment.