We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d827c3 commit 4ed90c4Copy full SHA for 4ed90c4
.github/workflows/release.yml
@@ -72,8 +72,16 @@ jobs:
72
- name: Extract TS SDK version from index.html
73
id: extract_ts_sdk_version
74
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"
+ version=$(grep -oP '"x-sdk-version":"ts-immutable-sdk-\K[0-9]+\.[0-9]+\.[0-9]+' ./src/Packages/Passport/Runtime/Resources/index.html)
+
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"
85
86
- name: Create Release
87
id: create_release
0 commit comments