Skip to content

Commit

Permalink
Merge branch 'main' into alb-mtls-update
Browse files Browse the repository at this point in the history
  • Loading branch information
aaythapa authored Feb 4, 2025
2 parents b7dc4cc + 4dd97bc commit b2086c3
Show file tree
Hide file tree
Showing 95 changed files with 9,940 additions and 1,490 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/analytics-metadata-updater.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CDK Analytics Metadata Updater
on:
workflow_dispatch:
pull_request:
branches:
- yuanhaoz/metadata_workflow # TODO, remove this
- v2-release

jobs:
update-analytics-metadata:
if: github.repository == 'aws/aws-cdk'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "*"
env:
NODE_OPTIONS: "--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"

- name: Install dependencies
run: yarn install --frozen-lockfile && cd tools/@aws-cdk/construct-metadata-updater && yarn build+test

- name: Invoke Analytics Metadata Updater
run: |
cd tools/@aws-cdk/construct-metadata-updater
./bin/update-construct-metadata
- name: Check for changes
id: git-check
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "changes=true" >> $GITHUB_OUTPUT
else
echo "changes=false" >> $GITHUB_OUTPUT
fi
- name: Commit & Push changes
if: steps.git-check.outputs.changes == 'true'
run: |
git config --global user.name 'aws-cdk-automation'
git config --global user.email '[email protected]'
git add .
git commit -m "chore: update analytics metadata blueprints"
git push origin ${{ github.event.pull_request.head.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/lock-issue-pr-with-message.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
issues: write
runs-on: ubuntu-latest
steps:
- uses: aws-actions/closed-issue-message@v1
- uses: aws-actions/closed-issue-message@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
message: |
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b2086c3

Please sign in to comment.