Skip to content

Commit 94898a6

Browse files
committed
Fix condition in release workflow allowing separate release of codegen without releasing codegen-generators
1 parent 874360a commit 94898a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-full-3.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
if [[ $MY_POM_VERSION_GENERATORS =~ ^.*SNAPSHOT$ ]];
8585
then
8686
echo "not releasing snapshot version: " ${MY_POM_VERSION_GENERATORS}
87-
echo "RELEASE_OK=no" >> $GITHUB_ENV
87+
echo "GENERATORS_RELEASE_OK=no" >> $GITHUB_ENV
8888
else
8989
GROUP_ID="io.swagger.codegen.v3"
9090
ARTIFACT_ID="swagger-codegen-generators"
@@ -188,6 +188,7 @@ jobs:
188188
provenance: false
189189
tags: swaggerapi/swagger-generator-v3-minimal:${{ env.SC_VERSION }},swaggerapi/swagger-generator-v3-minimal:latest
190190
- name: deploy
191+
if: env.RELEASE_OK == 'yes'
191192
run: |
192193
echo "${{ env.SC_VERSION }}"
193194

0 commit comments

Comments
 (0)