File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -103,8 +103,9 @@ jobs:
103
103
- name : Save SDK version for later
104
104
run : |
105
105
echo "Saving SDK_VERSION for later"
106
- export SDK_VERSION=$(cat packages/core/src/version.ts | cut -f5 -d' ' | tr -d "'" | tr -d ";")
107
- echo $SDK_VERSION > dist-serverless/version
106
+ cat packages/core/src/version.ts | awk -F"'" '{print $2}' > dist-serverless/version
107
+ [ -z $(cat dist-serverless/version) ] && echo "Version extraction failed" && exit 1
108
+
108
109
outputs :
109
110
# this needs to be passed on, because the `needs` context only looks at direct ancestors (so steps which depend on
110
111
# `job_build` can't see `job_install_deps` and what it returned)
@@ -533,8 +534,7 @@ jobs:
533
534
- name : Get SDK version
534
535
run : |
535
536
export SDK_VERSION=$(cat dist-serverless/version)
536
- echo "SDK_VERSION=$SDK_VERSION"
537
- echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV
537
+ echo "SDK_VERSION=$SDK_VERSION" | tee -a $GITHUB_ENV
538
538
- uses : actions/upload-artifact@v3
539
539
with :
540
540
name : ${{ env.HEAD_COMMIT }}
You can’t perform that action at this time.
0 commit comments