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