Skip to content

Commit

Permalink
Fix from kamil for properly saving version.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed May 13, 2022
1 parent 8a4039d commit f9c9494
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f9c9494

Please sign in to comment.