From f9c949480240dd8b7e20294bbdd0ba0b3e3ef457 Mon Sep 17 00:00:00 2001 From: Anton Pirker Date: Fri, 13 May 2022 11:28:24 +0200 Subject: [PATCH] Fix from kamil for properly saving version. --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9985bd48f6bd..fd7986b48e42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -103,8 +103,9 @@ jobs: - name: Save SDK version for later run: | echo "Saving SDK_VERSION for later" - export SDK_VERSION=$(cat packages/core/src/version.ts | cut -f5 -d' ' | tr -d "'" | tr -d ";") - echo $SDK_VERSION > dist-serverless/version + cat packages/core/src/version.ts | awk -F"'" '{print $2}' > dist-serverless/version + [ -z $(cat dist-serverless/version) ] && echo "Version extraction failed" && exit 1 + outputs: # this needs to be passed on, because the `needs` context only looks at direct ancestors (so steps which depend on # `job_build` can't see `job_install_deps` and what it returned)