Skip to content

Commit

Permalink
infra: discord 웹훅 action 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chansooo committed Jun 9, 2024
1 parent b6b20bf commit dd45e76
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,17 @@ jobs:
run: mise exec -- tuist test PPACIOS-Workspace

- name: Notify Discord on Success
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
if: ${{ success() }}
uses: ilovepotatoes/actions-for-discord@v1
uses: Ilshidur/action-discord@master
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
message: "✅ Tests passed for PR: ${{ github.event.pull_request.title }}. PR URL: ${{ github.event.pull_request.html_url }}"
args: "✅ Tests passed for PR: ${{ github.event.pull_request.title }}. PR URL: ${{ github.event.pull_request.html_url }}"

- name: Notify Discord on Failure
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
if: ${{ failure() }}
uses: ilovepotatoes/actions-for-discord@v1
uses: Ilshidur/action-discord@master
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
message: "❌ Tests failed for PR: ${{ github.event.pull_request.title }}. PR URL: ${{ github.event.pull_request.html_url }}"
args: "❌ Tests failed for PR: ${{ github.event.pull_request.title }}. PR URL: ${{ github.event.pull_request.html_url }}"

0 comments on commit dd45e76

Please sign in to comment.