From daaf195647b0ffd9d7e1f9848e924ebfebf75d22 Mon Sep 17 00:00:00 2001 From: Zhao Date: Thu, 17 Apr 2025 15:24:03 -0700 Subject: [PATCH] chore: fix enum updater static mapping PR process --- .github/workflows/enum-auto-updater.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/enum-auto-updater.yml b/.github/workflows/enum-auto-updater.yml index 3052a7c99199f..194d628987ef4 100644 --- a/.github/workflows/enum-auto-updater.yml +++ b/.github/workflows/enum-auto-updater.yml @@ -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 @@ -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 'aws-cdk-automation@users.noreply.github.com' @@ -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: |