Skip to content

valu-digital/slack-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Add slack-message to Github Workflows

Usage

- uses: valu-digital/slack-action@master
  with:
      token: ${{ secrets.SLACK_TOKEN }}
      # or
      #webhook: ${{ secrets.SLACK_WEBHOOK }}
      channel: "#channel" # Channel to send the messages to

This puts the slack-message command to the PATH in your Github Workflows and allows which can be used from any steps.

Example:

- name: Build and deploy
  run: |
        slack-message "Starting deploy"

        npm ci
        npm run deploy

        slack-message "App deployed"

Failure notifications

- name: Notify about failure
  if: failure()
  run: slack-message "Deploy failed"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages