@smbcloud / cli / commits / e9b18f9

Trigger downstream release workflows using tag ref instead of default branch

Trigger downstream release workflows using tag ref instead of default branch

keypair34 committed May 3, 2026 at 18:32 UTC e9b18f9b2d0c8d826e42175be4c3e3191762ce03
2 files changed +8 -8
.github/workflows/release-crate.yml
+7 -7
@@ -169,7 +169,7 @@ jobs:
169 owner: context.repo.owner,
170 repo: context.repo.repo,
171 workflow_id: 'release-github.yml',
172 - ref: context.payload.repository.default_branch,
172 + ref: '${{ needs.publish.outputs.tag }}',
173 inputs: {
174 tag: '${{ needs.publish.outputs.tag }}'
175 }
@@ -183,7 +183,7 @@ jobs:
183 owner: context.repo.owner,
184 repo: context.repo.repo,
185 workflow_id: 'release-npm.yml',
186 - ref: context.payload.repository.default_branch,
186 + ref: '${{ needs.publish.outputs.tag }}',
187 inputs: {
188 tag: '${{ needs.publish.outputs.tag }}'
189 }
@@ -197,7 +197,7 @@ jobs:
197 owner: context.repo.owner,
198 repo: context.repo.repo,
199 workflow_id: 'release-nuget.yml',
200 - ref: context.payload.repository.default_branch,
200 + ref: '${{ needs.publish.outputs.tag }}',
201 inputs: {
202 tag: '${{ needs.publish.outputs.tag }}'
203 }
@@ -211,7 +211,7 @@ jobs:
211 owner: context.repo.owner,
212 repo: context.repo.repo,
213 workflow_id: 'release-pypi.yml',
214 - ref: context.payload.repository.default_branch,
214 + ref: '${{ needs.publish.outputs.tag }}',
215 inputs: {
216 tag: '${{ needs.publish.outputs.tag }}'
217 }
@@ -232,7 +232,7 @@ jobs:
232 owner: context.repo.owner,
233 repo: context.repo.repo,
234 workflow_id: 'release-sdk-pypi.yml',
235 - ref: context.payload.repository.default_branch,
235 + ref: '${{ needs.publish.outputs.tag }}',
236 inputs: {
237 tag: '${{ needs.publish.outputs.tag }}'
238 }
@@ -253,7 +253,7 @@ jobs:
253 owner: context.repo.owner,
254 repo: context.repo.repo,
255 workflow_id: 'release-sdk-npm.yml',
256 - ref: context.payload.repository.default_branch,
256 + ref: '${{ needs.publish.outputs.tag }}',
257 inputs: {
258 tag: '${{ needs.publish.outputs.tag }}'
259 }
@@ -274,7 +274,7 @@ jobs:
274 owner: context.repo.owner,
275 repo: context.repo.repo,
276 workflow_id: 'release-sdk-gem.yml',
277 - ref: context.payload.repository.default_branch,
277 + ref: '${{ needs.publish.outputs.tag }}',
278 inputs: {
279 tag: '${{ needs.publish.outputs.tag }}'
280 }
.github/workflows/release-github.yml
+1 -1
@@ -179,7 +179,7 @@ jobs:
179 owner: context.repo.owner,
180 repo: context.repo.repo,
181 workflow_id: 'release-homebrew.yml',
182 - ref: context.payload.repository.default_branch,
182 + ref: '${{ steps.tag.outputs.tag }}',
183 inputs: {
184 tag: '${{ steps.tag.outputs.tag }}'
185 }