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: Bottles Pull Request Workflow | |
on: | |
pull_request: | |
branches: | |
- develop | |
types: [ opened, reopened, synchronize ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Slack Notification | |
if: github.event.action == 'opened' || github.event.action == 'reopened' | |
env: | |
DATA: | | |
{ | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "*서버 PR* :bell: @김미성@손인준" | |
} | |
}, | |
{ | |
"type": "section", | |
"fields": [ | |
{ | |
"type": "mrkdwn", | |
"text": "*Author:*\n${{ github.event.sender.login }}" | |
}, | |
{ | |
"type": "mrkdwn", | |
"text": "*Title:*\n${{ github.event.pull_request.title }}" | |
} | |
] | |
}, | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "*Description:*\n${{ github.event.pull_request.body }}" | |
} | |
}, | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "*Pull Request URL:*\nView PR" | |
} | |
} | |
] | |
} | |
run: | | |
curl -X POST -H 'Content-type: application/json' \ | |
-d "$DATA" \ | |
${{ secrets.SLACK_WEBHOOK_URL }} |