File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 1010 workflow_dispatch :
1111 inputs :
1212 latest_published_version :
13- description : " Latest npm published version to rebuild corresponding layer for, e.g. v1 .0.2"
14- default : " v1 .0.2"
13+ description : " Latest npm published version to rebuild corresponding layer for, e.g. 1 .0.2"
14+ default : " 1 .0.2"
1515 required : true
1616
1717 workflow_call :
@@ -40,20 +40,14 @@ jobs:
4040 uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
4141 with :
4242 node-version : " 18"
43- - name : Set release notes tag
44- run : |
45- RELEASE_INPUT=${{ inputs.latest_published_version }}
46- LATEST_TAG=$(git describe --tag --abbrev=0)
47- RELEASE_TAG_VERSION=${RELEASE_INPUT:-$LATEST_TAG}
48- echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
4943 - name : Setup dependencies
5044 uses : ./.github/actions/cached-node-modules
5145 - name : Create layer files
5246 run : |
53- export VERSION=$RELEASE_TAG_VERSION
47+ export VERSION=${{ inputs.latest_published_version }}
5448 bash .github/scripts/setup_tmp_layer_files.sh
5549 - name : CDK build
56- run : npm run cdk -w layers -- synth --context PowertoolsPackageVersion=$RELEASE_TAG_VERSION -o cdk.out
50+ run : npm run cdk -w layers -- synth --context PowertoolsPackageVersion=${{ inputs.latest_published_version }} -o cdk.out
5751 - name : Zip output
5852 run : zip -r cdk.out.zip layers/cdk.out
5953 - name : Archive CDK artifacts
You can’t perform that action at this time.
0 commit comments