From 050a7cffb4190fa5945b2694bf03dc673efb9bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=80=E1=85=B5=E1=86=B7=E1=84=83=E1=85=A1=E1=84=87?= =?UTF-8?q?=E1=85=B5=E1=86=AB=5BS=20Android=20Tech=5D?= <> Date: Tue, 30 Jun 2026 16:14:31 +0900 Subject: [PATCH] fix: yml --- .github/workflows/slack-test-1.yml | 31 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/slack-test-1.yml b/.github/workflows/slack-test-1.yml index 6c0c323..e1779d1 100644 --- a/.github/workflows/slack-test-1.yml +++ b/.github/workflows/slack-test-1.yml @@ -1,22 +1,19 @@ -# file-path: /.github/workflows/slack-alarm-webhook.yml - -name: "슬랙 웹훅 테스c1" - +# .github/workflows/slack-alarm-webhook.yml +name: "슬랙 PR 알림" on: pull_request: - types: [opened] # PR 등록시, slack에 자동 알림 - pull_request_review: - types: [submitted] - pull_request_review_comment: - types: [created, edited] - + types: [opened, reopened] jobs: - mention_notification: - name: Mention Notification + notify: + name: Notify Slack on PR runs-on: ubuntu-latest steps: - - uses: Laurenfrost/mention-to-slack@latest - with: - configuration-path: .github/mention-to-slack.yml - repo-token: ${{ secrets.GH_TOKEN }} - slack-webhook-url: ${{ secrets.DABIN_TEST1 }} \ No newline at end of file + - name: Send Slack message + run: | + curl -X POST -H 'Content-type: application/json' \ + --data "{\"text\":\"새 PR이 열렸습니다: ${PR_TITLE}\n${PR_URL}\"}" \ + "${SLACK_WEBHOOK_URL}" + env: + PR_TITLE: ${{ github.event.pull_request.title }} + PR_URL: ${{ github.event.pull_request.html_url }} + SLACK_WEBHOOK_URL: ${{ secrets.DABIN_TEST1 }} \ No newline at end of file