Skip to content

Commit 6cfaaa5

Browse files
committed
Only set a tag if a release is being created
1 parent b2c0a7a commit 6cfaaa5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/shared-publish-docker-versioned.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,16 @@ jobs:
121121
echo "git_commit=$(git show --format="%h" --no-patch)" >> $GITHUB_OUTPUT
122122
123123
- name: Commit pom.xml and version.json
124-
if: ${{ inputs.version_number_input == '' }}
124+
if: ${{ inputs.version_number_input == '' && steps.checkRelease.outputs.IS_RELEASE != 'true' }}
125+
uses: EndBug/add-and-commit@v9
126+
with:
127+
add: 'pom.xml version.json'
128+
author_name: Release Workflow
129+
author_email: [email protected]
130+
message: 'Released ${{ inputs.release_type }} version: ${{ steps.version.outputs.new_version }}'
131+
132+
- name: Commit pom.xml, version.json and set tag
133+
if: ${{ inputs.version_number_input == '' && steps.checkRelease.outputs.IS_RELEASE == 'true' }}
125134
uses: EndBug/add-and-commit@v9
126135
with:
127136
add: 'pom.xml version.json'

0 commit comments

Comments
 (0)