@@ -604,46 +604,19 @@ jobs:
604604 echo "✅ Packaging workflow completed successfully"
605605
606606 - name : Trigger deploy workflow
607- id : trigger_release_repo
608607 env :
609608 GH_TOKEN : ${{ secrets.CLI_RELEASE_PAT }}
610609 VERSION : ${{ needs.prepare.outputs.version }}
611610 PACKAGING_IMAGE : ${{ steps.packaging.outputs.packaging_image }}
612611 run : |
613612 echo "🚀 Triggering deploy workflow"
614-
615- # gh workflow run returns run URL on stdout (gh v2.87.0+)
616- OUTPUT=$(gh workflow run plugin.yml \
613+ gh workflow run plugin.yml \
617614 --repo docker/release-repo \
618615 --ref production \
619616 -f packaging_image="$PACKAGING_IMAGE" \
620617 -f model_version="$VERSION" \
621618 -f channel=stable \
622- -f release_live=true)
623-
624- RUN_URL=$(echo "$OUTPUT" \
625- | grep -o 'https://github.com/[^ ]*/actions/runs/[0-9]*') || true
626-
627- if [ -z "$RUN_URL" ]; then
628- echo "⚠️ Could not extract run URL from gh output, querying latest run..."
629- sleep 5
630- RUN_ID=$(gh run list \
631- --repo docker/release-repo \
632- --workflow plugin.yml \
633- --limit 1 \
634- --json databaseId \
635- --jq '.[0].databaseId')
636- else
637- RUN_ID=$(echo "$RUN_URL" | grep -o '[0-9]*$')
638- fi
639-
640- if [ -z "$RUN_ID" ]; then
641- echo "::error::Failed to determine deploy workflow run ID"
642- exit 1
643- fi
644-
645- echo "::add-mask::$RUN_ID"
646- echo "::add-mask::$RUN_URL"
619+ -f release_live=true
647620 echo "✅ Deploy workflow triggered"
648621
649622 # ---------------------------------------------------------------------------
0 commit comments