File tree Expand file tree Collapse file tree
.github/actions/format-version Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 patch :
1010 description : ' Patch version to append to the formatted version.'
1111 required : true
12- build :
13- description : ' Commit delta to append to the formatted version.'
12+ build-number :
13+ description : ' Build number to append to the formatted version.'
1414 required : true
1515 sha :
1616 description : ' Commit SHA to append to the formatted version.'
@@ -56,11 +56,11 @@ runs:
5656 id : format-version
5757 run : |
5858 echo "friendly-version=${{ inputs.version }}" >> $GITHUB_OUTPUT
59- echo "assembly-version=${{ inputs.version }}.${{ inputs.patch }}.${{ inputs.commit-delta }}" >> $GITHUB_OUTPUT
60- echo "assembly-informational-version=${{ inputs.version }}.${{ inputs.patch }}+${{ inputs.commit- sha }}" >> $GITHUB_OUTPUT
61- echo "file-version=${{ inputs.version }}.${{ inputs.patch }}.${{ inputs.commit-delta }}" >> $GITHUB_OUTPUT
59+ echo "assembly-version=${{ inputs.version }}.${{ inputs.patch }}.${{ inputs.build-number }}" >> $GITHUB_OUTPUT
60+ echo "assembly-informational-version=${{ inputs.version }}.${{ inputs.patch }}+${{ inputs.sha }}" >> $GITHUB_OUTPUT
61+ echo "file-version=${{ inputs.version }}.${{ inputs.patch }}.${{ inputs.build-number }}" >> $GITHUB_OUTPUT
6262 if [ -n "${{ inputs.prerelease-tag }}" ]; then
63- echo "package-version=${{ inputs.version }}.${{ inputs.patch }}-${{ inputs.pre-release-tag }}-${{ inputs.commit-delta }}" >> $GITHUB_OUTPUT
63+ echo "package-version=${{ inputs.version }}.${{ inputs.patch }}-${{ inputs.pre-release-tag }}-${{ inputs.build-number }}" >> $GITHUB_OUTPUT
6464 else
65- echo "package-version=${{ inputs.version }}.${{ inputs.patch }}.${{ inputs.commit-delta }}" >> $GITHUB_OUTPUT
65+ echo "package-version=${{ inputs.version }}.${{ inputs.patch }}.${{ inputs.build-number }}" >> $GITHUB_OUTPUT
6666 fi
You can’t perform that action at this time.
0 commit comments