-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
106 changed files
with
3,625 additions
and
1,602 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 |
---|---|---|
|
@@ -10,6 +10,8 @@ jobs: | |
(github.event.pull_request.user.login == 'aws-cdk-automation' | ||
|| github.event.pull_request.user.login == 'dependabot[bot]' | ||
|| github.event.pull_request.user.login == 'dependabot-preview[bot]') | ||
permissions: | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hmarr/[email protected] | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,8 @@ on: | |
|
||
jobs: | ||
cleanup: | ||
permissions: | ||
issues: write | ||
runs-on: ubuntu-latest | ||
name: Stale issue job | ||
steps: | ||
|
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
name: Closed Issue Message | ||
on: | ||
issues: | ||
types: [closed] | ||
issues: | ||
types: [closed] | ||
jobs: | ||
auto_comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: aws-actions/closed-issue-message@v1 | ||
with: | ||
# These inputs are both required | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
message: | | ||
### ⚠️COMMENT VISIBILITY WARNING⚠️ | ||
Comments on closed issues are hard for our team to see. | ||
If you need more assistance, please either tag a team member or open a new issue that references this one. | ||
If you wish to keep having a conversation with other community members under this issue feel free to do so. | ||
auto_comment: | ||
permissions: | ||
issues: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: aws-actions/closed-issue-message@v1 | ||
with: | ||
# These inputs are both required | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
message: | | ||
### ⚠️COMMENT VISIBILITY WARNING⚠️ | ||
Comments on closed issues are hard for our team to see. | ||
If you need more assistance, please either tag a team member or open a new issue that references this one. | ||
If you wish to keep having a conversation with other community members under this issue feel free to do so. |
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 |
---|---|---|
|
@@ -9,11 +9,13 @@ on: | |
jobs: | ||
upgrade: | ||
name: Yarn Upgrade | ||
permissions: | ||
content: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check Out | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v2.3.4 | ||
|
||
- name: Set up Node | ||
uses: actions/[email protected] | ||
|
@@ -104,6 +106,38 @@ jobs: | |
- name: Run "yarn upgrade" | ||
run: yarn upgrade | ||
|
||
# Next, create and upload the changes as a patch file. This will later be downloaded to create a pull request | ||
# Creating a pull request requires write permissions and it's best to keep write privileges isolated. | ||
- name: Create Patch | ||
run: |- | ||
git add . | ||
git diff --patch --staged > ${{ runner.temp }}/upgrade.patch | ||
- name: Upload Patch | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: upgrade.patch | ||
path: ${{ runner.temp }}/upgrade.patch | ||
|
||
pr: | ||
name: Create Pull Request | ||
needs: upgrade | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check Out | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download patch | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: upgrade.patch | ||
path: ${{ runner.temp }} | ||
|
||
- name: Apply patch | ||
run: '[ -s ${{ runner.temp }}/upgrade.patch ] && git apply ${{ runner.temp }}/upgrade.patch || echo "Empty patch. Skipping."' | ||
|
||
- name: Make Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
|
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.