Skip to content

[release] v1.0.0: eightyage #51

[release] v1.0.0: eightyage

[release] v1.0.0: eightyage #51

Workflow file for this run

name: PR & Merge Slack Notification
on:
pull_request:
types: [opened, reopened, closed]
jobs:
slack-notify:
runs-on: ubuntu-latest
steps:
- name: Notify Slack for PR / Merge
run: |
if [[ "${{ github.event.action }}" == "closed" && "${{ github.event.pull_request.merged }}" == "true" ]]; then
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"βœ… *${{ github.event.pull_request.title }}* PR이 *MERGE* λ˜μ—ˆμŠ΅λ‹ˆλ‹€.\n${{ github.event.pull_request.html_url }}"}' \
${{ secrets.SLACK_WEBHOOK_URL }}
elif [[ "${{ github.event.action }}" == "opened" || "${{ github.event.action }}" == "reopened" ]]; then
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"πŸ“’ μƒˆ PR *${{ github.event.pull_request.title }}* by *${{ github.event.pull_request.user.login }}*\n${{ github.event.pull_request.html_url }}"}' \
${{ secrets.SLACK_WEBHOOK_URL }}
fi