Skip to content

Commit 34ccd26

Browse files
committed
feat: no ctc for prerelease
1 parent dddf9c2 commit 34ccd26

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/npmPublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383

8484
ctc-open:
8585
needs: [check-publish]
86-
if: inputs.ctc && needs.check-publish.outputs.published == 'false'
86+
if: inputs.ctc && needs.check-publish.outputs.published == 'false' && inputs.tag == 'latest'
8787
uses: salesforcecli/github-workflows/.github/workflows/ctcOpen.yml@main
8888
secrets: inherit
8989

@@ -118,15 +118,15 @@ jobs:
118118

119119
ctcCloseSuccess:
120120
needs: [ctc-open, npm-publish]
121-
if: needs.ctc-open.result == 'success' && needs.npm-publish.result == 'success' && needs.ctc-open.outputs.changeCaseId
121+
if: needs.ctc-open.result == 'success' && needs.npm-publish.result == 'success' && needs.ctc-open.outputs.changeCaseId && inputs.tag == 'latest'
122122
uses: salesforcecli/github-workflows/.github/workflows/ctcClose.yml@main
123123
secrets: inherit
124124
with:
125125
changeCaseId: ${{needs.ctc-open.outputs.changeCaseId}}
126126

127127
ctcCloseFail:
128128
needs: [ctc-open, npm-publish]
129-
if: always() && inputs.ctc && needs.ctc-open.outputs.changeCaseId && (needs.ctc-open.result != 'success' || needs.npm-publish.result != 'success')
129+
if: always() && inputs.ctc && needs.ctc-open.outputs.changeCaseId && (needs.ctc-open.result != 'success' || needs.npm-publish.result != 'success') && inputs.tag == 'latest'
130130
uses: salesforcecli/github-workflows/.github/workflows/ctcClose.yml@main
131131
secrets: inherit
132132
with:

0 commit comments

Comments
 (0)