Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(gha): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 #386

Merged
60 changes: 24 additions & 36 deletions .github/workflows/slack-send-message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,31 @@ on:
jobs:
send:
runs-on: ${{ vars.RUNNER_UBUNTU }}
env:
SLACK_CHANNEL: ${{ inputs.channel-or-user }} # sanitize user inputs
steps:
- name: Send message to Slack
uses: slackapi/slack-github-action@v1.27.0
uses: slackapi/slack-github-action@v2.0.0
with:
channel-id: ${{ github.event.inputs.channel-or-user }}
errors: true
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":mega: This is a test from the ${{github.repository}} repository",
"emoji": true
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "- available <https://github.com/${{github.repository}}/releases|Releases> :heavy_check_mark: \n - Check packages published on <https://www.npmjs.com/package/bpmn-visualization|NPM> :heavy_check_mark:"
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "See the next steps <https://github.com/${{github.repository}}/blob/master/docs/contributors/maintainers.md#github-issues-milestones-and-projects-update|here> :arrow_left:"
}
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
channel: ${{ env.SLACK_CHANNEL }}
text: "This is a test from the ${{github.repository}} repository"
blocks:
- type: "header"
text:
type: "plain_text"
text: ":mega: This is a test from the ${{github.repository}} repository"
emoji: true
- type: "divider"
- type: "section"
text:
type: "mrkdwn"
text: "- available <https://github.com/${{github.repository}}/releases|Releases> :heavy_check_mark: \n - Check packages published on <https://www.npmjs.com/package/bpmn-visualization|NPM> :heavy_check_mark:"
- type: "divider"
- type: "section"
text:
type: "mrkdwn"
text: "See the next steps <https://github.com/${{github.repository}}/blob/master/docs/contributors/maintainers.md#github-issues-milestones-and-projects-update|here> :arrow_left:"