Merge pull request #284 from Nave-wata/chore/fix-sendmail #130
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github Notification | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
slackNotification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send GitHub Action trigger data to Slack workflow | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"channel": "${{ secrets.SLACK_CHANNEL_ID }}", | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "<!channel>\n*プルリクエストがマージされました*\n`git pull`を実行してローカルリポジトリを更新して下さい" | |
} | |
} | |
], | |
"attachments": [ | |
{ | |
"fallback": "Confirm merge Pull-Requests", | |
"color": "good", | |
"author_name": "${{ github.actor }}", | |
"author_icon": "${{ github.event.sender.avatar_url }}", | |
"fields": [ | |
{ | |
"title": "Pull request Title", | |
"value": "${{ github.event.pull_request.title }}", | |
"short": false | |
}, | |
{ | |
"title": "Number", | |
"value": "<${{ github.event.pull_request.html_url }}|hxs-mini2#${{ github.event.pull_request.number }}>", | |
"short": true | |
}, | |
{ | |
"title": "Event Type", | |
"value": "${{ github.event_name }}", | |
"short": true | |
} | |
] | |
} | |
] | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |