File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,11 @@ name: Cocoapods publish
22
33on :
44 workflow_dispatch :
5- push :
6- branches : [ main ]
75
86jobs :
9- # Only runs on the version update commit
10- # We need the new podspec available to publish to CocoaPods
7+ # Runs after the main publish workflow completes successfully
8+ # Triggered explicitly by publish.yml via `gh workflow run` (only on real releases, not dry-runs)
119 publish-to-cocoapods :
12- if :
" contains(github.event.head_commit.author.email, '[email protected] ')" 1310 name : Publish to CocoaPods
1411 runs-on : macos-latest
1512
Original file line number Diff line number Diff line change @@ -316,6 +316,12 @@ jobs:
316316 run : |
317317 git push origin HEAD:main --follow-tags --tags
318318
319+ - name : Trigger CocoaPods publish
320+ if : ${{ !inputs.dry-run }}
321+ run : gh workflow run cocoapods-publish.yml
322+ env :
323+ GH_TOKEN : ${{ steps.generate-token.outputs.token }}
324+
319325 - name : Dry-run summary
320326 if : ${{ inputs.dry-run }}
321327 run : |
You can’t perform that action at this time.
0 commit comments