mirror of
https://github.com/anthropics/claude-code.git
synced 2026-04-29 16:52:46 +00: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}"
|
echo "Processing issue #${ISSUE_NUMBER}"
|
||||||
|
|
||||||
# Trigger internal workflow via workflow_dispatch
|
# Trigger internal workflow via repository_dispatch
|
||||||
gh workflow run ${TARGET_WORKFLOW} \
|
gh api repos/${TARGET_REPO}/dispatches \
|
||||||
--repo ${TARGET_REPO} \
|
-f event_type=issue_opened \
|
||||||
-f "issue_url=${ISSUE_URL}" 2>/dev/null || {
|
-f client_payload[issue_url]="${ISSUE_URL}"|| {
|
||||||
echo "Issue notification sent"
|
echo "Issue notification sent"
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user