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] 깃허브 pr 빌드 실패 시 디스코드에 알림 전송하는 스크립트 오류 수정 #20

Closed
wants to merge 3 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
8 changes: 4 additions & 4 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 All @@ -67,6 +67,6 @@ jobs:
"title": "${{ github.event.pull_request.title }}",
"type": "rich",
"description": "빌드가 실패했습니다.",
"url": "${{github.ref}}"
"url": "https://github.com/Cafegory/Cafegory_Backend_REST_API/pull/${{github.event.number}}"
}
]}'
]}'
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