Skip to content

Multiple address lines in algorithm tests #41

Multiple address lines in algorithm tests

Multiple address lines in algorithm tests #41

name: "post merged pull to slack"
on:
pull_request:
branches: [main]
types:
- closed
jobs:
slack-pr-merged:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Send GitHub trigger payload to Slack
id: slack
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{
"text": ":github-merged: Pull request merged by ${{ github.event.pull_request.user.login }}\n\n<${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ":github-merged: Pull request merged by ${{ github.event.pull_request.user.login }}\n\n<${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK