Skip to content

Commit 3df2041

Browse files
authored
chore: fix enum updater static mapping PR process (#34188)
### Reason for this change There're some issues in the enum updater workflow. - When checking if there're specific file changed, the directory is not right - typo in Github PR creating command. ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent e43dc25 commit 3df2041

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Check for changes
3434
id: static-mapping-check
3535
run: |
36+
cd tools/@aws-cdk/enum-updater
3637
if [[ -n "$(git status --porcelain ./lib/static-enum-mapping.json)" ]]; then
3738
echo "changes=true" >> $GITHUB_OUTPUT
3839
else
@@ -42,6 +43,7 @@ jobs:
4243
- name: Create PR for static mapping changes
4344
if: steps.static-mapping-check.outputs.changes == 'true'
4445
run: |
46+
cd tools/@aws-cdk/enum-updater
4547
git config --global user.name 'aws-cdk-automation'
4648
git config --global user.email '[email protected]'
4749
@@ -56,8 +58,10 @@ jobs:
5658
gh pr create --title "chore: update enum static mapping" \
5759
--body "This PR updates the CDK enum mapping file." \
5860
--base main \
59-
--head "$branchName"
61+
--head "$branchName" \
6062
--label "contribution/core,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test"
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6165

6266
- name: Identify Missing Values and Apply Code Changes
6367
run: |

0 commit comments

Comments
 (0)