Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/rush-push-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Push Notification

# 저장소 웹훅은 force push를 걸러낼 수 없어 push 이벤트를 받지 않습니다.
# 대신 이 워크플로가 일반 push만 같은 Discord 채널로 전달합니다.
on:
push:

permissions: {}

jobs:
notify:
name: Forward Push to Discord
if: ${{ !github.event.forced }}
runs-on: ubuntu-latest
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_GITHUB_WEBHOOK }}
steps:
- name: Send Push Event
if: env.DISCORD_WEBHOOK != ''
run: |
curl -fsS -X POST "$DISCORD_WEBHOOK" \
-H "Content-Type: application/json" \
-H "X-GitHub-Event: push" \
--data-binary @"$GITHUB_EVENT_PATH"
Loading