Skip to content

snorrwe/discord-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Port of https://github.com/hreeder/discord-post-updater

Discord Message Updater

Post or update messages on Discord.

Configuration

Environment variable Required Default value Effect
DISCORD_TOKEN true undefined The authentication token of your bot.
DISCORD_CHANNEL true undefined The channel id this action will post in.
DISCORD_MESSAGE false The id of the last message The id of the message to update. If the value is new, then a new message will be posted. If omitted, the last message in the channel will be edited.
POST_FILE false /etc/discord-post/post The contents of this file will be posted as the message

Usage

Create a new Discord bot

In your GitHub repository project settings, set the DISCORD_BOT_TOKEN environmental variable to the token of your bot.

On discord you can copy the ID of the channel where you wish to send messages by right-clicking the channel name and selecting "Copy Channel ID".

Add this action to your GitHub Actions workflow.

      - name: Deploy on Discord
        uses: snorrwe/[email protected]
        with:
          discord_message: new
          discord_token: ${{ secrets.DISCORD_BOT_TOKEN }}
          post_file: CHANGELOG.md
          discord_channel: '1111111111111111111' # Note: The quote marks here are required

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published