Skip to content

Commit 0fbc633

Browse files
committed
Fix from kamil for properly saving version.
1 parent 8a4039d commit 0fbc633

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ jobs:
103103
- name: Save SDK version for later
104104
run: |
105105
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+
108109
outputs:
109110
# this needs to be passed on, because the `needs` context only looks at direct ancestors (so steps which depend on
110111
# `job_build` can't see `job_install_deps` and what it returned)
@@ -510,7 +511,7 @@ jobs:
510511
job_build_aws_lambda_layer:
511512
name: Build AWS Lambda Layer
512513
needs: job_build
513-
runs-on: ubuntu-latest
514+
runs-on: ubuntu-latest106
514515
steps:
515516
- name: Check out current commit (${{ env.HEAD_COMMIT }})
516517
uses: actions/checkout@v2

0 commit comments

Comments
 (0)