Skip to content

Commit 7778f4a

Browse files
authored
Merge pull request #487 from rsksmart/dependabot/github_actions/master/slackapi/slack-github-action-2.1.1
Bump slackapi/slack-github-action from 1.27.0 to 2.1.1
2 parents 365b00e + aeaaae6 commit 7778f4a

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/rit.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,35 +133,39 @@ jobs:
133133

134134
- name: Send Slack Notification on Success
135135
if: success() && github.event.pull_request.head.repo.owner.login == 'rsksmart'
136-
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
136+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
137137
env:
138-
SLACK_BOT_TOKEN: ${{ secrets.GHA_SLACK_NOTIFICATION_TOKEN }}
139138
GITHUB_EVENT_PULL_REQUEST_HTML_URL: ${{ github.event.pull_request.html_url }}
140139
with:
141-
channel-id: ${{ vars.GHA_SLACK_NOTIFICATION_CHANNEL }}
140+
token: ${{ secrets.GHA_SLACK_NOTIFICATION_TOKEN }}
141+
method: chat.postMessage
142142
payload: |
143143
{
144+
"channel": "${{ vars.GHA_SLACK_NOTIFICATION_CHANNEL }}",
144145
"attachments": [
145146
{
146147
"color": "good",
148+
"mrkdwn_in": ["text"],
147149
"text": "*PASSED*: :white_check_mark: - *${{ env.SAFE_PULL_REQUEST_TITLE }}* \n*Pull request*: ${{ env.GITHUB_EVENT_PULL_REQUEST_HTML_URL }} \n*Pipeline*: ${{ env.BUILD_URL }} \n*Branches used*: [ rskj:`${{ env.RSKJ_BRANCH }}` ] [ fed:`${{ env.POWPEG_BRANCH }}` ] [ rit:`${{ env.RIT_BRANCH }}` ]"
148150
}
149151
]
150152
}
151153
152154
- name: Send Slack Notification on Failure
153155
if: failure() && github.event.pull_request.head.repo.owner.login == 'rsksmart'
154-
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
156+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
155157
env:
156-
SLACK_BOT_TOKEN: ${{ secrets.GHA_SLACK_NOTIFICATION_TOKEN }}
157158
GITHUB_EVENT_PULL_REQUEST_HTML_URL: ${{ github.event.pull_request.html_url }}
158159
with:
159-
channel-id: ${{ vars.GHA_SLACK_NOTIFICATION_CHANNEL }}
160+
token: ${{ secrets.GHA_SLACK_NOTIFICATION_TOKEN }}
161+
method: chat.postMessage
160162
payload: |
161163
{
164+
"channel": "${{ vars.GHA_SLACK_NOTIFICATION_CHANNEL }}",
162165
"attachments": [
163166
{
164167
"color": "danger",
168+
"mrkdwn_in": ["text"],
165169
"text": "*FAILED*: :x: - *${{ env.SAFE_PULL_REQUEST_TITLE }}* \n*Pull request*: ${{ env.GITHUB_EVENT_PULL_REQUEST_HTML_URL }} \n*Pipeline*: ${{ env.BUILD_URL }} \n*Branches used*: [ rskj:`${{ env.RSKJ_BRANCH }}` ] [ fed:`${{ env.POWPEG_BRANCH }}` ] [ rit:`${{ env.RIT_BRANCH }}` ]"
166170
}
167171
]

0 commit comments

Comments
 (0)