From 8fba17cb997336aa0d883c68d03c85fbc54d3a5f Mon Sep 17 00:00:00 2001 From: inigo Date: Fri, 5 Sep 2025 15:15:25 -0700 Subject: [PATCH] Fix cross-repo workflow trigger mechanism --- .github/workflows/issue-notify.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/issue-notify.yml b/.github/workflows/issue-notify.yml index 4551c228..e0351cec 100644 --- a/.github/workflows/issue-notify.yml +++ b/.github/workflows/issue-notify.yml @@ -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 }