Skip to content

Commit

Permalink
change steps order to run slack step
Browse files Browse the repository at this point in the history
  • Loading branch information
romsharon98 committed Sep 25, 2024
1 parent e5f9fad commit 7d366b6
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -677,14 +677,17 @@ jobs:
notify-slack-failure:
name: "Notify Slack on Failure"
# if: github.event_name == 'schedule' && failure()
runs-on: ["ubuntu-22.04"]
uses: slackapi/[email protected]
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
channel-id: 'zzz_webhook_test'
# For posting a simple plain text message
slack-message: "GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
steps:
- name: Notify Slack
with:
# Slack channel id, channel name, or user id to post message.
# See also: https://api.slack.com/methods/chat.postMessage#channels
# You can pass in multiple channels to post to by providing a comma-delimited list of channel IDs.
channel-id: 'zzz_webhook_test'
# For posting a simple plain text message
slack-message: "GitHub build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"


# notify-slack-failure:
Expand Down

0 comments on commit 7d366b6

Please sign in to comment.