Skip to content

Commit e0c764d

Browse files
committed
ci: fix release workflow to include game bridge ts sdk version
1 parent 27dd424 commit e0c764d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +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)
75+
version=$(grep -oP '"x-sdk-version":"ts-immutable-sdk-\K[0-9]+\.[0-9]+\.[0-9]+' ./src/Packages/Passport/Runtime/Resources/index.html | head -n 1)
7676
7777
if [[ -z "$version" ]]; then
7878
echo "Error: Version not found in index.html" >&2
7979
exit 1
8080
fi
8181
8282
version=$(echo "$version" | tr -d '\r\n')
83-
84-
echo "VERSION=$version" >> "$GITHUB_ENV"
83+
84+
echo "VERSION=${version}" >> "$GITHUB_ENV"
8585
8686
- name: Create Release
8787
id: create_release

0 commit comments

Comments
 (0)