Skip to content

Commit 527b627

Browse files
authored
Update GitHub Actions to exclude specific user
1 parent d581180 commit 527b627

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Discord Notify
2+
3+
on:
4+
push:
5+
pull_request:
6+
issues:
7+
8+
jobs:
9+
notify:
10+
runs-on: ubuntu-latest
11+
# ✅ 특정 사람 제외
12+
if: github.actor != 'coderabbitai'
13+
steps:
14+
- name: Send to Discord
15+
env:
16+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
17+
run: |
18+
curl -H "Content-Type: application/json" \
19+
-d "{\"content\":\"${{ github.repository }}: ${{ github.event_name }} by ${{ github.actor }}\"}" \
20+
"$DISCORD_WEBHOOK"

0 commit comments

Comments
 (0)