Skip to content

Commit

Permalink
workflow discord 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanmi authored Dec 8, 2024
1 parent 47af286 commit 060869c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/smeemDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: Swift
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

jobs:
build:
Expand All @@ -25,3 +23,19 @@ jobs:
run: echo "${{ secrets.DEBUG_CONFIG }}" > ./Smeem-iOS/Debug.xcconfig
- name: Build
run: xcodebuild clean test -project Smeem-iOS/Smeem-iOS.xcodeproj -scheme Smeem-Dev -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.2' -quiet

# 성공 시 Discord 알림
- name: Notify Discord on success
if: success()
run: |
curl -H "Content-Type: application/json" \
-d '{"username": "GitHub Actions", "content": "✅ Build succeeded for branch `${{ github.ref_name }}`."}' \
${{ secrets.DISCORD_WEBHOOK_URL_DEV }}
# # 실패 시 Discord 알림
- name: Notify Discord on failure
if: failure()
run: |
curl -H "Content-Type: application/json" \
-d '{"username": "GitHub Actions", "content": "❌ Build failed for branch `${{ github.ref_name }}`. Check logs for details."}' \
${{ secrets.DISCORD_WEBHOOK_URL_DEV }}

0 comments on commit 060869c

Please sign in to comment.