Skip to content

Commit b0fc9a5

Browse files
authored
chore: fix spec update does not add new modules (#27215)
Fixes missing new modules in code base. Manually tested via a run: - Actions run: https://github.com/aws/aws-cdk/actions/runs/6247982836 - Created PR: #27216 (closed on purpose) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 8fff9d3 commit b0fc9a5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/spec-update.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
contents: read
1616
runs-on: ubuntu-latest
1717
steps:
18-
1918
- name: Check Out
2019
uses: actions/checkout@v4
2120

@@ -35,8 +34,14 @@ jobs:
3534

3635
# This will ensure the current lockfile is up-to-date with the dependency specifications
3736
- name: Install latest version & update lockfile
38-
run: |-
39-
yarn upgrade @aws-cdk/aws-service-spec @aws-cdk/service-spec-types
37+
run: yarn upgrade @aws-cdk/aws-service-spec @aws-cdk/service-spec-types
38+
39+
# Build @aws-cdk/spec2cdk and run L1 gen script to generate base files for new modules
40+
- name: Build @aws-cdk/spec2cdk
41+
run: lerna run build --stream --no-progress --skip-nx-cache --scope @aws-cdk/spec2cdk
42+
- name: Generate L1s
43+
working-directory: packages/aws-cdk-lib
44+
run: yarn gen
4045

4146
# Next, create and upload the changes as a patch file. This will later be downloaded to create a pull request
4247
# Creating a pull request requires write permissions and it's best to keep write privileges isolated.
@@ -80,9 +85,9 @@ jobs:
8085
feat: update AWS Service Spec
8186
AWS Service Spec packages to latest versions.
8287
# Pull Request details
83-
title: 'feat: update AWS Service Spec'
88+
title: "feat: update AWS Service Spec"
8489
body: |-
85-
AWS Service Spec packages to latest versions.
90+
AWS Service Spec packages to latest versions.
8691
labels: contribution/core,dependencies,auto-approve,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test
8792
team-reviewers: aws-cdk-team
8893
# Github prevents further Github actions to be run if the default Github token is used.

0 commit comments

Comments
 (0)