Skip to content

Commit 79930c5

Browse files
authored
Merge pull request #20 from kea-dpang/develop
Fix: Slack 알림 액션 변경
2 parents c7da576 + 8b47b08 commit 79930c5

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/deploy.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
permissions:
88
contents: read
9+
actions: read
910

1011
jobs:
1112
build-docker-image:
@@ -46,11 +47,14 @@ jobs:
4647
platforms: linux/amd64
4748
tags: ${{ secrets.KC_REGISTRY_URL }}/${{ secrets.IMAGE_NAME }}:${{ github.event.release.tag_name }}, ${{ secrets.KC_REGISTRY_URL }}/${{ secrets.IMAGE_NAME }}:latest
4849

49-
- name: Slack Notification
50-
id: slack
51-
uses: slackapi/[email protected]
50+
- name: slack-notification
51+
uses: 8398a7/action-slack@v3
52+
with:
53+
status: ${{ job.status }}
54+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
5255
env:
5356
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
57+
if: always()
5458

5559
update-k8s:
5660
needs: build-docker-image
@@ -80,8 +84,11 @@ jobs:
8084
git commit -m "update: 이미지 버전 수정 ${{ secrets.IMAGE_NAME }} v${{ github.event.release.tag_name }} by Git Action"
8185
git push
8286
83-
- name: Slack Notification
84-
id: slack
85-
uses: slackapi/[email protected]
87+
- name: slack-notification
88+
uses: 8398a7/action-slack@v3
89+
with:
90+
status: ${{ job.status }}
91+
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took,pullRequest
8692
env:
87-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
93+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
94+
if: always()

0 commit comments

Comments
 (0)