Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUILD FAIL] 빌드 실패시 디스코드 알림 전송 테스트 #19

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/close_pr_when_build_fail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: If build fail
continue-on-error: true
# 이전 step이 실패한 경우에만 이 step을 실행시키는 syntax
if: ${{ steps.build_and_test.conclusion == 'failure'}}
if: ${{ steps.build_and_test.outcome == 'failure'}}
id: close_pr
uses: actions/github-script@v6
with:
Expand All @@ -56,7 +56,7 @@ jobs:
})
- name: Send Build Fail Message to Discord
continue-on-error: true
if: ${{ steps.build_and_test.conclusion == 'failure'}}
if: ${{ steps.build_and_test.outcome == 'failure'}}
run: |
curl --location ${{secrets.DISCORD_WEBHOOK_URL}} \
--header 'Content-Type: application/json' \
Expand Down
1 change: 1 addition & 0 deletions src/test/java/com/example/demo/DemoApplicationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class DemoApplicationTests {

@Test
void contextLoads() {
throw new RuntimeException();
}

}
Loading