Skip to content

Commit 672fc04

Browse files
authored
Merge branch 'main' into fix/amplify-alpha-github
2 parents 0b9e11b + 7d82072 commit 672fc04

File tree

656 files changed

+519928
-88813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

656 files changed

+519928
-88813
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.buck
1717
packages/@aws-cdk-testing/framework-integ/test/**/*.snapshot/**/asset*.zip filter=lfs diff=lfs merge=lfs -text
1818
packages/@aws-cdk/*-alpha/test/**/*.snapshot/**/asset*.zip filter=lfs diff=lfs merge=lfs -text
1919
packages/@aws-cdk/*-alpha/test/*.snapshot/asset.*/bootstrap filter=lfs diff=lfs merge=lfs -text
20+
packages/@aws-cdk-testing/framework-integ/test/aws-s3-deployment/test/integ.bucket-deployment-large-file/asset*/large* filter=lfs diff=lfs merge=lfs -text

.github/workflows/enum-auto-updater.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CDK Enums Auto Updater
22
on:
33
workflow_dispatch:
4+
schedule:
5+
- cron: '0 0 * * 1'
46

57
jobs:
68
update-l2-enums:
@@ -23,6 +25,40 @@ jobs:
2325
- name: Install dependencies
2426
run: cd tools/@aws-cdk/enum-updater && yarn install --frozen-lockfile && yarn build
2527

28+
- name: Update enum static mapping
29+
run: |
30+
cd tools/@aws-cdk/enum-updater
31+
./bin/update-static-enum-mapping
32+
33+
- name: Check for changes
34+
id: static-mapping-check
35+
run: |
36+
if [[ -n "$(git status --porcelain ./lib/static-enum-mapping.json)" ]]; then
37+
echo "changes=true" >> $GITHUB_OUTPUT
38+
else
39+
echo "changes=false" >> $GITHUB_OUTPUT
40+
fi
41+
42+
- name: Create PR for static mapping changes
43+
if: steps.static-mapping-check.outputs.changes == 'true'
44+
run: |
45+
git config --global user.name 'aws-cdk-automation'
46+
git config --global user.email 'aws-cdk-automation@users.noreply.github.com'
47+
48+
# Create a new branch for the module
49+
branchName="enum-update/static-mapping-update"
50+
git checkout -b "$branchName"
51+
52+
git add . # Add all files changed
53+
git commit -m "chore: update enum static mapping"
54+
git push origin "$branchName"
55+
56+
gh pr create --title "chore: update enum static mapping" \
57+
--body "This PR updates the CDK enum mapping file." \
58+
--base main \
59+
--head "$branchName"
60+
--label "contribution/core,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test"
61+
2662
- name: Identify Missing Values and Apply Code Changes
2763
run: |
2864
cd tools/@aws-cdk/enum-updater
@@ -40,9 +76,6 @@ jobs:
4076
- name: Commit & Push changes
4177
if: steps.git-check.outputs.changes == 'true'
4278
run: |
43-
git config --global user.name 'aws-cdk-automation'
44-
git config --global user.email 'aws-cdk-automation@users.noreply.github.com'
45-
4679
# Iterate through each module directory that has changes
4780
for module in $(git diff --name-only | grep -E '^packages/(@aws-cdk|aws-cdk-lib)/.*' | sed -E 's|^packages/(@aws-cdk\|aws-cdk-lib)/([^/]+).*|\2|' | sort -u); do
4881
moduleName=$(basename $module)

packages/@aws-cdk-testing/framework-integ/test/aws-appconfig/test/integ.configuration.js.snapshot/appconfigconfigurationDefaultTestDeployAssert6752CD38.assets.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)