Skip to content

Commit 4ed90c4

Browse files
committed
ci: fix release workflow to include game bridge ts sdk version
1 parent 1d827c3 commit 4ed90c4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,16 @@ jobs:
7272
- name: Extract TS SDK version from index.html
7373
id: extract_ts_sdk_version
7474
run: |
75-
VERSION=$(grep -oP '"x-sdk-version":"ts-immutable-sdk-\K[0-9]+\.[0-9]+\.[0-9]+' ./src/Packages/Passport/Runtime/Resources/index.html)
76-
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
75+
version=$(grep -oP '"x-sdk-version":"ts-immutable-sdk-\K[0-9]+\.[0-9]+\.[0-9]+' ./src/Packages/Passport/Runtime/Resources/index.html)
76+
77+
if [[ -z "$version" ]]; then
78+
echo "Error: Version not found in index.html" >&2
79+
exit 1
80+
fi
81+
82+
version=$(echo "$version" | tr -d '\r\n')
83+
84+
echo "VERSION=$version" >> "$GITHUB_ENV"
7785
7886
- name: Create Release
7987
id: create_release

0 commit comments

Comments
 (0)