Skip to content

Commit

Permalink
chore(gha): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 (#386
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dependabot[bot] authored Jan 22, 2025
1 parent d515daf commit 6581624
Showing 1 changed file with 24 additions and 36 deletions.
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:"

0 comments on commit 6581624

Please sign in to comment.