Skip to content

Commit

Permalink
Merge pull request #19 from Kakaotech-10/feature/slack_webhook
Browse files Browse the repository at this point in the history
✨ Slack webhook 설정
  • Loading branch information
rimeir authored Oct 14, 2024
2 parents e4864fa + 989efc1 commit 00ea91e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/slack-alarm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Slack Alarm

on:
pull_request:
branches: [ "main", "dev" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: action-slack
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK}}
PR_TITLE: ${{ github.event.pull_request.title }}
PR_BODY: ${{ github.event.pull_request.body }}
PR_USER: ${{ github.event.pull_request.user.login }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: |
curl -X POST -H 'Content-type: application/json' --data '{
"text": "*New Frontend PR!*\n>*Title*: ${PR_TITLE}\n>*User*: ${PR_USER}\n>*URL*: ${PR_URL}\n>*Description*: ${PR_BODY}"
}' $SLACK_WEBHOOK_URL

0 comments on commit 00ea91e

Please sign in to comment.