File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,17 @@ jobs:
4949 - name : Download Specification
5050 run : wget "${SPEC_URL}" '--output-document' "${ARTIFACT_NAME}"
5151
52- - name : Check version number
52+ - name : Set version
53+ id : version
5354 run : |
54- vrchat_sdk_version=$(( ${PASSED_VERSION%%.*})).${PASSED_VERSION#*.}${VERSION_POSTPEND}
55- echo "Version is: ${vrchat_sdk_version}"
56- echo "vrchat_sdk_version=$vrchat_sdk_version" >> $GITHUB_ENV
55+ # Replace using bash
56+ VERSION="${PASSED_VERSION}${VERSION_POSTPEND}"
57+ CLEAN_VERSION="${VERSION/-nightly./.dev}"
58+ echo "version=${CLEAN_VERSION}" >> $GITHUB_OUTPUT
59+
60+ - name : Apply Version Postpend
61+ if : ${{ github.event_name == 'workflow_dispatch' && inputs.version_postfix != '' }}
62+ run : yq '--inplace' ".info.version |= \"${{ steps.version.outputs.version }}\"" "${ARTIFACT_NAME}"
5763
5864 - name : Generate SDK Client
5965 run : bash ./generate.sh "${ARTIFACT_NAME}"
6369 with :
6470 branch : main
6571 folder : .
66- commit-message : " Upgrade Java SDK to spec ${vrchat_sdk_version }"
67- tag : ${vrchat_sdk_version }
72+ commit-message : " Upgrade Java SDK to spec ${{ steps.version.outputs.version } }"
73+ tag : ${{ steps.version.outputs.version } }
6874
6975# gradle:
7076# runs-on: ubuntu-latest
You can’t perform that action at this time.
0 commit comments