Skip to content

Commit be247ba

Browse files
authored
Merge branch 'main' into automation/update-contributors
2 parents ad9af82 + 4dd97bc commit be247ba

File tree

46 files changed

+6895
-7
lines changed

Some content is hidden

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

46 files changed

+6895
-7
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: CDK Analytics Metadata Updater
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches:
6+
- yuanhaoz/metadata_workflow # TODO, remove this
7+
- v2-release
8+
9+
jobs:
10+
update-analytics-metadata:
11+
if: github.repository == 'aws/aws-cdk'
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
ref: ${{ github.event.pull_request.head.ref }}
20+
21+
- name: Set up Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "*"
25+
env:
26+
NODE_OPTIONS: "--max-old-space-size=8196 --experimental-worker ${NODE_OPTIONS:-}"
27+
28+
- name: Install dependencies
29+
run: yarn install --frozen-lockfile && cd tools/@aws-cdk/construct-metadata-updater && yarn build+test
30+
31+
- name: Invoke Analytics Metadata Updater
32+
run: |
33+
cd tools/@aws-cdk/construct-metadata-updater
34+
./bin/update-construct-metadata
35+
36+
- name: Check for changes
37+
id: git-check
38+
run: |
39+
if [[ -n "$(git status --porcelain)" ]]; then
40+
echo "changes=true" >> $GITHUB_OUTPUT
41+
else
42+
echo "changes=false" >> $GITHUB_OUTPUT
43+
fi
44+
45+
- name: Commit & Push changes
46+
if: steps.git-check.outputs.changes == 'true'
47+
run: |
48+
git config --global user.name 'aws-cdk-automation'
49+
git config --global user.email '[email protected]'
50+
git add .
51+
git commit -m "chore: update analytics metadata blueprints"
52+
git push origin ${{ github.event.pull_request.head.ref }}
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lock-issue-pr-with-message.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
issues: write
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: aws-actions/closed-issue-message@v1
16+
- uses: aws-actions/closed-issue-message@v2
1717
with:
1818
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1919
message: |

packages/@aws-cdk-testing/framework-integ/test/aws-ecs-patterns/test/fargate/integ.container-cpu-memory.js.snapshot/aws-ecs-integ-container-cpu-memory.assets.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)