Skip to content

Commit 930117d

Browse files
committed
[chore/#1] action-slack@v3로 변경
1 parent 178aff6 commit 930117d

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/ace_build.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
restore-keys: |
3434
${{ runner.os }}-gradle-
3535
36-
# - name: local.properties 설정
36+
# - name: local.properties 설정
3737
# 프로젝트의 local.properties 파일에 필요한 환경 변수를 설정합니다. 이후, 서버가 배포되면 주석 해제하여 사용합니다.
3838
# run: |
3939
# echo "BASE_URL=${{ secrets.BASE_URL }}" >> local.properties
@@ -48,18 +48,23 @@ jobs:
4848
path: app/build/outputs/apk/debug/app-debug.apk
4949

5050
- name: Slack 알림 (빌드 성공)
51-
# 빌드 성공 시 Slack으로 알림을 보냅니다.
5251
if: success()
53-
uses: rtCamp/action-slack-notify@v2
52+
uses: 8398a7/action-slack@v3
53+
with:
54+
status: success
55+
fields: workflow,job,commit,repo,author,took,ref
56+
author_name: GitHub Actions
57+
text: "✅ CI 빌드 성공! PR: #${{ github.event.pull_request.number }} - `${{ github.event.pull_request.title }}`" # 메시지 내용
5458
env:
5559
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
56-
SLACK_CHANNEL: "#client-actions" # 알림을 받을 Slack 채널
57-
SLACK_MESSAGE: "✅ CI 빌드 성공! PR: #${{ github.event.pull_request.number }} - `${{ github.event.pull_request.title }}`"
5860

5961
- name: Slack 알림 (빌드 실패)
6062
if: failure()
61-
uses: rtCamp/action-slack-notify@v2
63+
uses: 8398a7/action-slack@v3
64+
with:
65+
status: failure
66+
fields: workflow,job,commit,repo,author,took,ref
67+
author_name: GitHub Actions
68+
text: "❌ CI 빌드 실패! PR: #${{ github.event.pull_request.number }} - `${{ github.event.pull_request.title }}`"
6269
env:
63-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
64-
SLACK_CHANNEL: "#client-actions"
65-
SLACK_MESSAGE: "❌ CI 빌드 실패! PR: #${{ github.event.pull_request.number }} - `${{ github.event.pull_request.title }}`"
70+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)