Skip to content

Commit

Permalink
infra: discord 웹훅 yml 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chansooo committed Jun 9, 2024
1 parent cfa59b0 commit b6b20bf
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ name: PPAC
on:
pull_request:
branches: [ develop ]
push:
branches: [ infra/discord-webhook-설정 ]

jobs:
build:
name: test action
runs-on: macos-13
steps:
- uses: actions/checkout@v3

# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: '15.4'

- name: Access Available
run: chmod +x Scripts/onboarding.sh
Expand All @@ -35,5 +33,20 @@ jobs:
run: mise exec -- tuist install

- name: Build and Test
id: build_and_test
shell: bash -l {0}
run: mise exec -- tuist test PPACIOS-Workspace

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

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

0 comments on commit b6b20bf

Please sign in to comment.