Skip to content

Commit

Permalink
ci: try discord new suppressed embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed May 12, 2024
1 parent 6fee3c4 commit 7664d8a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,18 @@ jobs:
env:
SEMANTIC_RELEASE_OUTPUTS: ${{ toJson(steps.semantic-release.outputs) }}

- name: Modify release notes
id: modify_notes
run: |
new_release_notes="${{ steps.semantic-release.outputs.new_release_notes }}"
modified_notes=$(echo "$new_release_notes" | sed 's#\(https\?://[^)]*\)#<\1#g')
echo "::set-output name=modified_notes::$modified_notes"
- name: Discord notification
if: steps.semantic-release.outputs.new_release_published == 'true'
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
with:
args: |
${{ steps.semantic-release.outputs.new_release_notes }}
--suppressEmbeds
${{ steps.modify_notes.outputs.modified_notes }}

0 comments on commit 7664d8a

Please sign in to comment.