File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,12 +43,12 @@ jobs:
4343 id : process-version
4444 run : |
4545 VERSION_TAG=${{ inputs.release-tag }}
46- VERSION_TAG=${VERSION_TAG#v} # remove the 'v' prefix
46+ VERSION_TAG=${VERSION_TAG#v} # remove the 'v' prefix
4747 IFS='.' read -ra VERSION_PARTS <<< "$VERSION_TAG" # split into array
4848 VERSION_CODE=$(printf "%1d%02d%03d" "${VERSION_PARTS[0]}" "${VERSION_PARTS[1]}" "${VERSION_PARTS[2]}")
4949
50- echo "versonName=${{ inputs.release-tag }} " >> $GITHUB_OUTPUT
51- echo "versonCode=$VERSION_CODE" >> $GITHUB_OUTPUT
50+ echo "versonName=$VERSION_TAG " >> $GITHUB_OUTPUT # "1.2.3"
51+ echo "versonCode=$VERSION_CODE" >> $GITHUB_OUTPUT # "102003"
5252
5353 # Re-write version in build.gradle.kts
5454 - name : Re-write version
@@ -97,15 +97,15 @@ jobs:
9797 - name : Tag Repo
9898 uses : richardsimko/update-tag@v1
9999 with :
100- tag_name : ${{ steps.process-version.outputs.versonName }}
100+ tag_name : ${{ inputs.release-tag }}
101101 env :
102102 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
103103
104104 - name : Upload Release
105105 uses : softprops/action-gh-release@v1
106106 if : ${{ success() }}
107107 with :
108- tag_name : ${{ steps.process-version.outputs.versonName }}
108+ tag_name : ${{ inputs.release-tag }}
109109 files : app/build/outputs/apk/meta/release/*
110110 generate_release_notes : true
111111
You can’t perform that action at this time.
0 commit comments