@@ -68,14 +68,23 @@ jobs:
6868 prerelease-version : ${{ steps.version.outputs.version }}
6969
7070 build-and-publish :
71- name : Call Publish Workflow
71+ name : Trigger Publish Workflow
7272 needs : [resolve-pr]
73- uses : ./.github/workflows/pypi_publish.yml
74- with :
75- # Use refs/pull/<PR>/head instead of raw SHA for fork compatibility
76- git_ref : refs/pull/${{ github.event.inputs.pr }}/head
77- version_override : ${{ needs.resolve-pr.outputs.prerelease-version }}
78- publish : true
73+ runs-on : ubuntu-latest
74+ steps :
75+ - name : Trigger pypi_publish workflow
76+ id : dispatch
77+ uses : the-actions-org/workflow-dispatch@v4
78+ with :
79+ workflow : pypi_publish.yml
80+ token : ${{ secrets.GITHUB_CI_WORKFLOW_TRIGGER_PAT }}
81+ ref : main # Run from main so OIDC attestation matches trusted publisher
82+ inputs : ' {"git_ref": "refs/pull/${{ github.event.inputs.pr }}/head", "version_override": "${{ needs.resolve-pr.outputs.prerelease-version }}", "publish": "true"}'
83+ wait-for-completion : true
84+ wait-for-completion-timeout : 30m
85+ outputs :
86+ workflow-conclusion : ${{ steps.dispatch.outputs.workflow-conclusion }}
87+ workflow-url : ${{ steps.dispatch.outputs.workflow-url }}
7988
8089 post-result-comment :
8190 name : Write Status to PR
94103 > **Prerelease Published to PyPI**
95104 >
96105 > Version: `${{ needs.resolve-pr.outputs.prerelease-version }}`
106+ > [View publish workflow](${{ needs.build-and-publish.outputs.workflow-url }})
97107 >
98108 > Install with:
99109 > ```bash
@@ -110,7 +120,7 @@ jobs:
110120 > **Prerelease Build/Publish Failed**
111121 >
112122 > The prerelease encountered an error.
113- > [Check job output](${{ needs.resolve-pr .outputs.job-run -url }}) for details.
123+ > [Check publish workflow output](${{ needs.build-and-publish .outputs.workflow -url }}) for details.
114124 >
115125 > You can still install directly from this PR branch:
116126 > ```bash
0 commit comments