File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 10
10
workflow_dispatch :
11
11
inputs :
12
12
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"
15
15
required : true
16
16
17
17
workflow_call :
@@ -40,20 +40,14 @@ jobs:
40
40
uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0
41
41
with :
42
42
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
49
43
- name : Setup dependencies
50
44
uses : ./.github/actions/cached-node-modules
51
45
- name : Create layer files
52
46
run : |
53
- export VERSION=$RELEASE_TAG_VERSION
47
+ export VERSION=${{ inputs.latest_published_version }}
54
48
bash .github/scripts/setup_tmp_layer_files.sh
55
49
- 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
57
51
- name : Zip output
58
52
run : zip -r cdk.out.zip layers/cdk.out
59
53
- name : Archive CDK artifacts
You can’t perform that action at this time.
0 commit comments