Skip to content

Commit c477087

Browse files
authored
update-version action: allow opt-out of running update-version.sh
1 parent 5730ec7 commit c477087

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/actions/update-version/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,16 @@ runs:
7171
git add ${{ inputs.changelog-output-file }}
7272
7373
- name: update version
74-
id: result
74+
if: ${{ inputs.template-extension != '' || inputs.files != '' }}
7575
working-directory: ${{ github.workspace }}
7676
shell: bash
7777
run: |
7878
SCRIPT="${{inputs.ksp-build-tools-root}}/update-version.sh"
7979
chmod +x $SCRIPT
8080
$SCRIPT -g true -d true $VERSION_STRING ${{inputs.template-extension}} ${{inputs.files}}
81-
echo "version-string=$VERSION_STRING" >> "$GITHUB_OUTPUT"
8281
82+
- name: output
83+
id: result
84+
shell: bash
85+
run: |
86+
echo "version-string=$VERSION_STRING" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)