From dd45e76b3bf693f35a825be02b4e73101ed4166c Mon Sep 17 00:00:00 2001 From: chansooo Date: Sun, 9 Jun 2024 14:39:20 +0900 Subject: [PATCH] =?UTF-8?q?infra:=20discord=20=EC=9B=B9=ED=9B=85=20action?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pullRequest.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pullRequest.yml b/.github/workflows/pullRequest.yml index 9a635d2..9a9b02c 100644 --- a/.github/workflows/pullRequest.yml +++ b/.github/workflows/pullRequest.yml @@ -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 }}"