announce-n-crosspost

Simple action which sends a message over to discord news channel and crossposts it.

Inputs

Input name Description Required Default Value
bot-token Discord bot token. This bot should have the SEND_MESSAGES permission in the news channel you want to send message in. true N/A
channel A string being the channel id of the news channel you want to post the message in. Channel MUST be a news channel. true N/A
content The message content which should be sent. true N/A

Example Job

  Publish-To-Discord:
    runs-on: ubuntu-latest
    steps:
      - name: Publish
        uses: Crec0/[email protected]
        with:
          bot-token: ${{ secrets.DISCORD_BOT_TOKEN }}
          channel: ${{ secrets.CHANNEL_ID }}
          content: |
            **${{ github.event.release.name }}** has been released!
            
            ${{ github.event.release.body }}
            
            Get it on Github Releases: <${{ github.event.release.html_url }}>

GitHub

View Github