@udecode/[email protected] #1526
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify release | |
on: | |
release: | |
types: [released] # Ignore prerelease | |
jobs: | |
notify: | |
name: Discord Notification | |
runs-on: ubuntu-20.04 | |
if: ${{ startsWith(github.ref, 'refs/tags/@udecode/plate@') }} | |
steps: | |
- name: get-version | |
id: version | |
run: echo "output=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT | |
- name: notify | |
uses: sebastianpopp/discord-action@releases/v2 | |
with: | |
webhook: ${{ secrets.DISCORD_RELEASE_WEBHOOK }} | |
message: '`${{ steps.version.outputs.output }}` is released :rocket: https://github.com/udecode/plate/commit/${{ github.sha }}' |