Skip to content

Commit

Permalink
Merge pull request #5 from Legion2/master
Browse files Browse the repository at this point in the history
updated syntax highlighting to yaml
  • Loading branch information
abinoda authored Aug 15, 2019
2 parents 8aebfbe + 5a805fa commit 57a7d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This action wraps the Slack [chat.postMessage](https://api.slack.com/methods/cha

## Usage:

```workflow
```yaml
- name: Notify slack
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down Expand Up @@ -36,7 +36,7 @@ To use this GitHub Action, you'll need to set a `SLACK_BOT_TOKEN` secret on GitH

Slack's [chat.postMessage](https://api.slack.com/methods/chat.postMessage) method accepts a JSON payload containing options — this JSON payload should be supplied as the argument in your GitHub Action. At a bare minimum, your payload must include a channel ID and the message. Here's what a basic message might look like:

```workflow
```yaml
- name: Notify slack
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down

0 comments on commit 57a7d97

Please sign in to comment.