Skip to content

Commit

Permalink
fix: disable version string check to unblock build (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert authored Aug 2, 2024
1 parent c6c8344 commit be528a2
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/build-game-bridge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,25 @@ jobs:
- name: Build Game Bridge
run: yarn nx run @imtbl/game-bridge:build --skip-nx-cache

- name: Check Unity Version String Updated
if: ${{ github.event.inputs.game_engine == 'Unity' || github.event.inputs.game_engine == 'Both' }}
run: |
UNITY_ARTIFACT_PATH="./packages/game-bridge/dist/unity/index.html"
UNITY_VERSION_STRING_COUNT=$(cat $UNITY_ARTIFACT_PATH | grep -c -o "ts-immutable-sdk-${{ env.TS_SDK_TAG }}")
if [ "$UNITY_VERSION_STRING_COUNT" -eq 0 ]; then
echo "Error: Updated version string not found in $UNITY_ARTIFACT_PATH"
exit 1
fi
- name: Check Unreal Version String Updated
if: ${{ github.event.inputs.game_engine == 'Unreal' || github.event.inputs.game_engine == 'Both' }}
run: |
UNREAL_ARTIFACT_PATH="./packages/game-bridge/dist/unreal/index.js"
UNREAL_VERSION_STRING_COUNT=$(cat $UNREAL_ARTIFACT_PATH | grep -c -o "ts-immutable-sdk-${{ env.TS_SDK_TAG }}")
if [ "$UNREAL_VERSION_STRING_COUNT" -eq 0 ]; then
echo "Error: Updated version string not found in $UNREAL_ARTIFACT_PATH"
exit 1
fi
# - name: Check Unity Version String Updated
# if: ${{ github.event.inputs.game_engine == 'Unity' || github.event.inputs.game_engine == 'Both' }}
# run: |
# UNITY_ARTIFACT_PATH="./packages/game-bridge/dist/unity/index.html"
# UNITY_VERSION_STRING_COUNT=$(cat $UNITY_ARTIFACT_PATH | grep -c -o "ts-immutable-sdk-${{ env.TS_SDK_TAG }}")
# if [ "$UNITY_VERSION_STRING_COUNT" -eq 0 ]; then
# echo "Error: Updated version string not found in $UNITY_ARTIFACT_PATH"
# exit 1
# fi

# - name: Check Unreal Version String Updated
# if: ${{ github.event.inputs.game_engine == 'Unreal' || github.event.inputs.game_engine == 'Both' }}
# run: |
# UNREAL_ARTIFACT_PATH="./packages/game-bridge/dist/unreal/index.js"
# UNREAL_VERSION_STRING_COUNT=$(cat $UNREAL_ARTIFACT_PATH | grep -c -o "ts-immutable-sdk-${{ env.TS_SDK_TAG }}")
# if [ "$UNREAL_VERSION_STRING_COUNT" -eq 0 ]; then
# echo "Error: Updated version string not found in $UNREAL_ARTIFACT_PATH"
# exit 1
# fi

- name: Cache build artifacts
uses: actions/cache@v4
Expand Down

0 comments on commit be528a2

Please sign in to comment.