Skip to content

Commit 065f4b6

Browse files
author
Alexander Schueren
authored
remove old version script (#1570)
1 parent 8be8373 commit 065f4b6

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/publish_layer.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
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

0 commit comments

Comments
 (0)