mirror of
https://github.com/anthropics/claude-code.git
synced 2025-10-19 03:17:50 +03:00
Fix cross-repo workflow trigger mechanism
This commit is contained in:
8
.github/workflows/issue-notify.yml
vendored
8
.github/workflows/issue-notify.yml
vendored
@@ -30,10 +30,10 @@ jobs:
|
||||
|
||||
echo "Processing issue #${ISSUE_NUMBER}"
|
||||
|
||||
# Trigger internal workflow via workflow_dispatch
|
||||
gh workflow run ${TARGET_WORKFLOW} \
|
||||
--repo ${TARGET_REPO} \
|
||||
-f "issue_url=${ISSUE_URL}" 2>/dev/null || {
|
||||
# Trigger internal workflow via repository_dispatch
|
||||
gh api repos/${TARGET_REPO}/dispatches \
|
||||
-f event_type=issue_opened \
|
||||
-f client_payload[issue_url]="${ISSUE_URL}"|| {
|
||||
echo "Issue notification sent"
|
||||
exit 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user