diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9985bd48f6bd..03b0ff9b4821 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) @@ -510,7 +511,7 @@ jobs: job_build_aws_lambda_layer: name: Build AWS Lambda Layer needs: job_build - runs-on: ubuntu-latest + runs-on: ubuntu-latest106 steps: - name: Check out current commit (${{ env.HEAD_COMMIT }}) uses: actions/checkout@v2