Skip to content

joshmgross/send-slack-message

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send Slack Message

This is a GitHub action to send a Slack message using a Slack bot token.

Set up

See https://api.slack.com/bot-users for information on setting up and installing a Slack Bot.

Inputs

  • message: The Slack message to send

  • slack-token: The Slack bot user access token

  • channel: The Slack channel ID to send the message to

Example Usage

      - name: Post message
        uses: joshmgross/send-slack-message@main
        with:
          message: 'Hello world'
          channel: ${{ secrets.SLACK_CHANNEL_ID }}
          slack-token: ${{ secrets.SLACK_BOT_TOKEN }}