Skip to content

Commit

Permalink
ci: change how everything is printed
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed May 9, 2024
1 parent 47cc46d commit 90fc233
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Debug Semantic Release Outputs
- name: Print Semantic Release Outputs
run: |
echo "Semantic Release Outputs: ${{ toJson(steps.semantic-release.outputs) }}"
echo "Semantic Release Outputs:"
for output in $(jq -r 'keys[]' <<< "${{ toJson(steps.semantic-release.outputs) }}"); do
value=$(jq -r ".$output" <<< "${{ toJson(steps.semantic-release.outputs) }}")
echo "$output: $value"
done
- name: Discord notification
if: steps.semantic-release.outputs.new_release_published
if: steps.semantic-release.outputs != null
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
Expand Down

0 comments on commit 90fc233

Please sign in to comment.