-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2962 from aws/release-v1.60.0
Release 1.60.0 (to main)
- Loading branch information
Showing
377 changed files
with
264,635 additions
and
162,593 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Check compatibility | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check-compatibility: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the PR | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Extract PR public interfaces | ||
run: | | ||
make init | ||
bin/public_interface.py extract > "${{ runner.temp }}"/interfaces.new.json | ||
- name: Backup PR bin/public_interface.py | ||
run: | | ||
# Keep a copy of bin/public_interface.py | ||
# So we are using the same bin/public_interface.py to process old/new codebase. | ||
cp bin/public_interface.py "${{ runner.temp }}"/public_interface.py | ||
- name: Checkout the base | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "${{ github.base_ref }}" | ||
|
||
- name: Extract original public interfaces | ||
run: | | ||
make init | ||
# Recover bin/public_interface.py | ||
cp "${{ runner.temp }}"/public_interface.py bin/public_interface.py | ||
bin/public_interface.py extract > "${{ runner.temp }}"/interfaces.original.json | ||
- name: Detect compatibility breaking changes | ||
id: detect | ||
run: | | ||
bin/public_interface.py check "${{ runner.temp }}"/interfaces.original.json "${{ runner.temp }}"/interfaces.new.json |
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,45 @@ | ||
name: Update schema | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 1-5" # Weekdays | ||
|
||
jobs: | ||
update: | ||
if: github.repository == 'aws/serverless-application-model' | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Update schema | ||
id: schema | ||
run: | | ||
make init | ||
make schema-all | ||
# Sets condition steps.schema.outputs.changed to true if anything changed | ||
git diff --exit-code || echo "changed=true" >> $GITHUB_OUTPUT | ||
- name: Push change to temporary branch | ||
if: steps.schema.outputs.changed | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout -b tmp/schema/$GITHUB_RUN_ID/$GITHUB_RUN_ATTEMPT | ||
git add -u | ||
git commit -m "chore(schema): update" | ||
git push --set-upstream origin tmp/schema/$GITHUB_RUN_ID/$GITHUB_RUN_ATTEMPT | ||
- name: Create PR | ||
if: steps.schema.outputs.changed | ||
run: printf '> **Note**\n> If checks do not start, close then reopen this pull request.\n\nCreated by the [`schema.yml`](https://github.com/aws/serverless-application-model/blob/develop/.github/workflows/schema.yml) workflow.\n' | gh pr create --fill --base develop --body-file - | ||
env: | ||
GH_TOKEN: ${{ github.token }} |
Oops, something went wrong.