Skip to content

Commit 7d7f3b2

Browse files
committed
Fix CI
1 parent e284e23 commit 7d7f3b2

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff 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}"
@@ -63,8 +69,8 @@ jobs:
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

0 commit comments

Comments
 (0)