Skip to content

Commit f015e1c

Browse files
committed
Use is_release_tag.
1 parent 9e6138b commit f015e1c

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.github/workflows/CompletePipeline.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,34 @@ jobs:
311311
coverage: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).codecoverage_html }}
312312
typing: ${{ fromJson(needs.UnitTestingParams.outputs.artifact_names).statictyping_html }}
313313

314+
TriggerTaggedRelease:
315+
uses: pyTooling/Actions/.github/workflows/TagReleaseCommit.yml@dev
316+
needs:
317+
- Prepare
318+
- UnitTesting
319+
# - AppTesting
320+
# - StaticTypeCheck
321+
- Package
322+
- PublishToGitHubPages
323+
if: needs.Prepare.outputs.is_release_commit
324+
permissions:
325+
contents: write # required for create tag
326+
actions: write # required for trigger workflow
327+
with:
328+
version: ${{ needs.Prepare.outputs.version }}
329+
auto_tag: ${{ needs.Prepare.outputs.is_release_commit }}
330+
secrets: inherit
331+
314332
ReleasePage:
315333
uses: pyTooling/Actions/.github/workflows/PublishReleaseNotes.yml@dev
316-
if: startsWith(github.ref, 'refs/tags')
317334
needs:
318335
- Prepare
319336
- UnitTesting
320337
# - AppTesting
321338
# - StaticTypeCheck
322339
- Package
323340
- PublishToGitHubPages
324-
secrets: inherit
341+
if: needs.Prepare.outputs.is_release_tag
325342
permissions:
326343
contents: write
327344
actions: write
@@ -331,10 +348,11 @@ jobs:
331348

332349
PublishOnPyPI:
333350
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
334-
if: startsWith(github.ref, 'refs/tags')
335351
needs:
352+
- Prepare
336353
- UnitTestingParams
337354
- ReleasePage
355+
if: needs.Prepare.outputs.is_release_tag
338356
with:
339357
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
340358
requirements: -r dist/requirements.txt

.github/workflows/_Checking_JobTemplates.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,14 @@ jobs:
208208

209209
ReleasePage:
210210
uses: pyTooling/Actions/.github/workflows/PublishReleaseNotes.yml@dev
211-
if: startsWith(github.ref, 'refs/tags')
212211
needs:
213212
- Prepare
214213
- UnitTesting
215214
- PlatformTesting
216215
# - StaticTypeCheck
217216
- Package
218217
- PublishToGitHubPages
219-
secrets: inherit
218+
if: needs.Prepare.outputs.is_release_tag
220219
permissions:
221220
contents: write
222221
actions: write
@@ -226,11 +225,11 @@ jobs:
226225

227226
PublishOnPyPI:
228227
uses: pyTooling/Actions/.github/workflows/PublishOnPyPI.yml@dev
229-
if: startsWith(github.ref, 'refs/tags')
230228
needs:
231229
- UnitTestingParams
232230
- ReleasePage
233231
# - Package
232+
if: needs.Prepare.outputs.is_release_tag
234233
with:
235234
python_version: ${{ needs.UnitTestingParams.outputs.python_version }}
236235
requirements: -r dist/requirements.txt

0 commit comments

Comments
 (0)