File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 10
10
if : startsWith(github.ref, 'refs/tags/')
11
11
runs-on : ubuntu-latest
12
12
steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Extract TS SDK version from index.html
17
+ id : extract_ts_sdk_version
18
+ run : |
19
+ version=$(grep -oP '"x-sdk-version":"ts-immutable-sdk-\K[0-9]+\.[0-9]+\.[0-9]+' ./Web/index.js | head -n 1)
20
+
21
+ if [[ -z "$version" ]]; then
22
+ echo "Error: Version not found in index.js" >&2
23
+ exit 1
24
+ fi
25
+
26
+ version=$(echo "$version" | tr -d '\r\n')
27
+
28
+ echo "VERSION=${version}" >> "$GITHUB_ENV"
29
+
13
30
- name : Build Changelog
14
31
id : github_release
15
32
uses : mikepenz/release-changelog-builder-action@v3
33
50
- name : Create Release
34
51
35
52
with :
36
- body : ${{steps.github_release.outputs.changelog}}
53
+ body : |
54
+ ${{steps.github_release.outputs.changelog}}
55
+
56
+ Game bridge built from Immutable Typescript SDK version ${{ env.VERSION }}
37
57
38
-
58
+
You can’t perform that action at this time.
0 commit comments