From 989efc1c72b4e261b97004c9ac06f6cfea67a478 Mon Sep 17 00:00:00 2001 From: rimeir Date: Mon, 14 Oct 2024 17:27:29 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20fe=20PR=20=EC=95=8C=EB=9E=8C=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/slack-alarm.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/slack-alarm.yml diff --git a/.github/workflows/slack-alarm.yml b/.github/workflows/slack-alarm.yml new file mode 100644 index 0000000..7442f0e --- /dev/null +++ b/.github/workflows/slack-alarm.yml @@ -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 \ No newline at end of file