Skip to content

Commit b5b4d17

Browse files
committed
refactor: 실패 시 슬랙에 메세지 전송
1 parent 344170e commit b5b4d17

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/process-e2e.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,19 @@ jobs:
6464
with:
6565
name: cypress-screenshots
6666
path: cypress/screenshots
67+
68+
slackNotify:
69+
if: failure()
70+
runs-on: ubuntu-latest
71+
72+
steps:
73+
- name: Notify message to slack
74+
uses: rtCamp/action-slack-notify@v2
75+
env:
76+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
77+
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
78+
SLACK_COLOR: ${{ job.status }} # 또는 'green', '#ff00ff' 처럼 직접 색상 지정
79+
SLACK_USERNAME: Github
80+
SLACK_ICON: https://cdn-icons-png.flaticon.com/512/25/25231.png
81+
SLACK_TITLE: E2E Test
82+
SLACK_MESSAGE: 'E2E CI 테스트가 실패했습니다. Artifact를 확인해주세요.'

0 commit comments

Comments
 (0)