Skip to content

Commit 07032a2

Browse files
authored
ci: fix slackapi v2.1.1 (#389)
This PR tries to properly migrate from v1.25.0 to v2.1.1. Previous attempt #384 got reverted.
1 parent a18917b commit 07032a2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/ci-notify-slack.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
echo "safe_title=$ESCAPED_TITLE" >> "$GITHUB_OUTPUT"
2525
2626
- name: Post to a Slack channel
27-
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
27+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
2828
with:
29-
channel-id: eng-execution-mrs
30-
slack-message: ":github: `${{ github.repository }}` <${{ github.event.pull_request.html_url }}|${{ steps.sanitize.outputs.safe_title }}>"
31-
env:
32-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_API_TOKEN }}
29+
method: chat.postMessage
30+
token: ${{ secrets.SLACK_API_TOKEN }}
31+
payload: |
32+
channel: eng-execution-mrs
33+
text: ":github: `${{ github.repository }}` <${{ github.event.pull_request.html_url }}|${{ steps.sanitize.outputs.safe_title }}>"

0 commit comments

Comments
 (0)