Release to Discord #12
This file contains hidden or 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: Release to Discord | |
| on: | |
| workflow_run: | |
| workflows: ["Release"] | |
| types: [completed] | |
| workflow_dispatch: | |
| jobs: | |
| github-releases-to-discord: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Discord Release Webhook | |
| uses: lettermint/action-discord-releases@v1.0.1 | |
| with: | |
| color: 'b07219' | |
| webhook_url: ${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }} | |
| content: 'A new release for the Lettermint Java SDK is now available! ||@Java||' |