-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into scanlonp/add-label-replace-action
- Loading branch information
Showing
2,457 changed files
with
829,946 additions
and
664,324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
persist-credentials: false | ||
- name: Find changed cli files | ||
id: changed-cli-files | ||
uses: tj-actions/changed-files@408093d9ff9c134c33b974e0722ce06b9d6e8263 | ||
uses: tj-actions/changed-files@1c938490c880156b746568a518594309cfb3f66b | ||
with: | ||
base_sha: ${{ github.event.pull_request.base.sha }} | ||
files_yaml: | | ||
|
@@ -46,7 +46,7 @@ jobs: | |
git config --global user.email '[email protected]' | ||
git push --force --atomic https://github.com/${{ github.repository }}.git FETCH_HEAD:test-main-pipeline | ||
- name: Explain next steps | ||
uses: thollander/actions-comment-pull-request@d61db783da9abefc3437960d0cce08552c7c004f | ||
uses: thollander/actions-comment-pull-request@1d3973dc4b8e1399c0620d3f2b1aa5e795465308 | ||
with: | ||
message: | | ||
:arrow_right: **PR build request submitted to `test-main-pipeline`** :arrow_left: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Update Metadata Regions | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
update-regions: | ||
name: Update Regions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download regions | ||
env: | ||
URL: https://d3mqmgkwnwa8vm.cloudfront.net/regions.json | ||
id: download | ||
run: | | ||
response=$(curl $URL) | ||
echo "REGIONS=${response}" >> "$GITHUB_OUTPUT" | ||
status=$(curl -s -o /dev/null -w "%{http_code}" $URL) | ||
echo "STATUS=${status}" >> "$GITHUB_OUTPUT" | ||
- uses: actions/checkout@v4 | ||
- uses: actions/github-script@v7 | ||
if: ${{ steps.download.outputs.STATUS == 200 }} | ||
env: | ||
REGIONS: ${{ steps.download.outputs.REGIONS }} | ||
with: | ||
script: | | ||
const script = require('./scripts/update-metadata-regions.js') | ||
script() | ||
- name: Create Patch | ||
run: |- | ||
git add . | ||
git diff --patch --staged > ${{ runner.temp }}/update-spec.patch | ||
- name: Upload Patch | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: update-spec.patch | ||
path: ${{ runner.temp }}/update-spec.patch | ||
|
||
pr: | ||
name: Create Pull Request | ||
needs: update-regions | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Out | ||
uses: actions/checkout@v4 | ||
|
||
- name: Download patch | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: update-spec.patch | ||
path: ${{ runner.temp }} | ||
|
||
- name: Apply patch | ||
run: '[ -s ${{ runner.temp }}/update-spec.patch ] && git apply ${{ runner.temp }}/update-spec.patch || echo "Empty patch. Skipping."' | ||
|
||
- name: Make Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
# Git commit details | ||
branch: automation/region-update | ||
author: aws-cdk-automation <[email protected]> | ||
commit-message: |- | ||
feat(region-info): update Metadata regions | ||
Update the list of regions where the CDK deploys the `AWS::CDK::Metadata` resource. | ||
# Pull Request details | ||
title: "feat(region-info): update Metadata regions" | ||
body: |- | ||
Update the list of regions where the CDK deploys the `AWS::CDK::Metadata` resource. | ||
labels: contribution/core,dependencies,auto-approve,pr-linter/exempt-integ-test,pr-linter/exempt-readme,pr-linter/exempt-test | ||
team-reviewers: aws-cdk-team | ||
# Github prevents further Github actions to be run if the default Github token is used. | ||
# Instead use a privileged token here, so further GH actions can be triggered on this PR. | ||
token: ${{ secrets.PROJEN_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.