Skip to content

freight-hub/action-slack-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Action: Send a notification to slack

Inputs

slack_webhook_url

Required URL of the webhook called. You can create this webhook by creating a slack app. Follow the guide here

message

Required The message you would like to send

is_markdown

No outputs

Example usage

Send a message on slack

name: Notify slack
id: slack
uses: freight-hub/action-slack-notify@v1.1
with:
  slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
  message: 'hello channel!'
  is_markdown: false

Contributing

When contributing to this library there are some points to note:

  1. Please run yarn format & yarn build BEFORE pushing to the repository.
  2. The dist folder is checked in (we compile the node_modules into it with @vercel/ncc)
    • this is because we need to include the complete script in the repository for github
  3. Please keep this readme up to date 4After you have comitted, you can tag the repository to 'build' a new version for use in actions

About

Github action to notify slack on deployment

Resources

Stars

Watchers

Forks

Packages

No packages published