Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/enum-auto-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Check for changes
id: static-mapping-check
run: |
cd tools/@aws-cdk/enum-updater
if [[ -n "$(git status --porcelain ./lib/static-enum-mapping.json)" ]]; then
echo "changes=true" >> $GITHUB_OUTPUT
else
Expand All @@ -42,6 +43,7 @@ jobs:
- name: Create PR for static mapping changes
if: steps.static-mapping-check.outputs.changes == 'true'
run: |
cd tools/@aws-cdk/enum-updater
git config --global user.name 'aws-cdk-automation'
git config --global user.email '[email protected]'

Expand All @@ -56,8 +58,10 @@ jobs:
gh pr create --title "chore: update enum static mapping" \
--body "This PR updates the CDK enum mapping file." \
--base main \
--head "$branchName"
--head "$branchName" \
--label "contribution/core,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Identify Missing Values and Apply Code Changes
run: |
Expand Down
Loading