Skip to content

Commit

Permalink
Merge pull request #269 from sue445/doc_v2
Browse files Browse the repository at this point in the history
docs: Migrate to v2
  • Loading branch information
satterly committed Sep 19, 2023
2 parents 3eca730 + cc40218 commit d2cd23b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -229,15 +229,15 @@ matches. All possible status check functions are:
To send a Slack message when a workflow job has completed add the
following as the last step of the job:

- uses: act10ns/slack@v1
- uses: act10ns/slack@v2
with:
status: ${{ job.status }}
if: always()

To include statuses for each Job Step in the message include the
`steps` input (making sure to use the `toJSON` function):

- uses: act10ns/slack@v1
- uses: act10ns/slack@v2
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
Expand All @@ -254,14 +254,14 @@ Only steps that have a "step id" assigned to them will be reported on:
The default Slack channel for the configured webhook can be overridden
using either another channel name `#channel` or a username `@username`.

- uses: act10ns/slack@v1
- uses: act10ns/slack@v2
with:
status: ${{ job.status }}
channel: '#workflows'

or

- uses: act10ns/slack@v1
- uses: act10ns/slack@v2
with:
status: ${{ job.status }}
channel: '@nick'
Expand All @@ -282,7 +282,7 @@ or
IMAGE_NAME: ${{ github.repository }}/alerta-cli
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- uses: act10ns/slack@v1
- uses: act10ns/slack@v2
with:
status: starting
channel: '#workflows'
Expand All @@ -309,7 +309,7 @@ or
id: docker-push
run: docker push $REPOSITORY_URL/$IMAGE_NAME

- uses: act10ns/slack@v1
- uses: act10ns/slack@v2
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
Expand Down

0 comments on commit d2cd23b

Please sign in to comment.