Skip to content

Commit

Permalink
feat : CI실패 시 디스코드 알림 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ekgns33 committed Jun 30, 2024
1 parent 3433ff7 commit 07ba876
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu' # Alternative distribution options are available
distribution: 'temurin' # Alternative distribution options are available

- name: grant permission to gradle
run: chmod +x gradlew
Expand All @@ -42,3 +42,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonar --info

- name: Backend CI Discord Notification
uses: sarisia/actions-status-discord@v1
if: ${{ failure() }}
with:
title: ❗️ Backend CI failed ❗️
webhook: ${{ secrets.DISCORD_URL }}
color: FF0000

0 comments on commit 07ba876

Please sign in to comment.