From a6253720592920017d64f2d31c007be65e35dd89 Mon Sep 17 00:00:00 2001 From: Dahyeon Jin <154739298+dahyeo-n@users.noreply.github.com> Date: Thu, 9 Jan 2025 10:06:57 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20lint-build.yml=EC=97=90=20Lint/?= =?UTF-8?q?=EB=B9=8C=EB=93=9C=20=EC=97=90=EB=9F=AC=20=EA=B0=90=EC=A7=80=20?= =?UTF-8?q?=ED=9B=84=20=EC=95=8C=EB=A6=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/lint-build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint-build.yml b/.github/workflows/lint-build.yml index 4ea1fe8..40e75d4 100644 --- a/.github/workflows/lint-build.yml +++ b/.github/workflows/lint-build.yml @@ -38,22 +38,24 @@ jobs: run: pnpm install - name: Run Lint + id: Run_Lint run: pnpm lint - name: Prettier Check + id: Prettier_Check run: pnpm prettier --check . - name: Build if: success() run: pnpm build - - name: Notify Discord on Failure - if: failure() + - name: Notify Discord on Lint/Prettier/Build Failure + if: failure() && (steps.Run_Lint.outcome == 'failure' || steps.Prettier_Check.outcome == 'failure') uses: johnnyhuy/actions-discord-git-webhook@main with: webhook_url: ${{ secrets.DISCORD_WEBHOOK }} args: | - 🚨 **Lint/Build/Test Workflow μ‹€νŒ¨** 🚨 + 🚨 **Lint, Prettier, Build Workflow μ‹€νŒ¨** 🚨 **Repository**: ${{ github.repository }} **Branch**: ${{ github.ref_name }} @@ -61,7 +63,6 @@ jobs: **Author**: ${{ github.actor }} **Job**: ${{ github.job }} - ❗ μžμ„Έν•œ λ‚΄μš©μ€ [GitHub Actions Logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})λ₯Ό ν™•μΈν•˜μ„Έμš”. - + ❗ μžμ„Έν•œ λ‚΄μš©μ€ [GitHub Actions Logs](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) 확인 --- πŸ•’ **Timestamp**: ${{ github.event.head_commit.timestamp }}