Skip to content

Commit

Permalink
docs: lint-build.yml에 Lint/빌드 에러 감지 후 알림 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dahyeo-n authored Jan 9, 2025
1 parent 495170b commit a625372
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/lint-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,31 @@ 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 }}
**Commit**: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
**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 }}

0 comments on commit a625372

Please sign in to comment.