Fix cross-repo workflow trigger mechanism

This commit is contained in:
inigo
2025-09-05 15:15:25 -07:00
parent 2b3a504f85
commit 8fba17cb99

View File

@@ -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
}