File tree Expand file tree Collapse file tree 5 files changed +19
-10
lines changed Expand file tree Collapse file tree 5 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 18
18
with :
19
19
github-token : " ${{ secrets.GITHUB_TOKEN }}"
20
20
- name : Enable auto-merge for mypy-boto3 stubs Dependabot PRs
21
- if : ${{contains(steps.metadata.outputs.dependency-names, 'mypy-boto3')}} # && steps.metadata.outputs.update-type == 'version-update:semver-patch'
21
+ if : ${{ contains(steps.metadata.outputs.dependency-names, 'mypy-boto3') && steps.metadata.outputs.update-type != 'version-update:semver-major' }}
22
+ run : gh pr merge --auto --squash "$PR_URL"
23
+ env :
24
+ PR_URL : ${{github.event.pull_request.html_url}}
25
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
26
+ # Maintenance: Experiment with literal array (toJSON('["dep1", "dep2"]')) to ease extending it
27
+ - name : Enable auto-merge for CDK Construct Lambda Layer Dependabot PRs
28
+ if : ${{ contains(steps.metadata.outputs.dependency-names, 'cdk-lambda-powertools-python-layer') && steps.metadata.outputs.update-type != 'version-update:semver-major' }}
29
+ run : gh pr merge --auto --squash "$PR_URL"
30
+ env :
31
+ PR_URL : ${{github.event.pull_request.html_url}}
32
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
33
+ # Maintenance: Revisit if CDK Constructs make breaking changes like CDK v1
34
+ - name : Enable auto-merge for CDK Lib Construct
35
+ if : ${{ contains(steps.metadata.outputs.dependency-names, 'aws-cdk-lib') && steps.metadata.outputs.update-type != 'version-update:semver-major' }}
22
36
run : gh pr merge --auto --squash "$PR_URL"
23
37
env :
24
38
PR_URL : ${{github.event.pull_request.html_url}}
Original file line number Diff line number Diff line change @@ -16,14 +16,10 @@ jobs:
16
16
token : ${{ secrets.GITHUB_TOKEN }}
17
17
release_label_on_merge :
18
18
needs : get_pr_details
19
- # Maintenance: Conditional isn't working as expected
20
- if : |
21
- needs.get_pr_details.outputs.prAuthor != 'dependabot[bot]'
22
- && needs.get_pr_details.outputs.prIsMerged == true
23
19
runs-on : ubuntu-latest
24
20
steps :
25
21
- name : Debug outputs
26
- run : echo " Outputs ${{ toJSON(needs.get_pr_details.outputs) }}"
22
+ run : echo ' Outputs ${{ toJSON(needs.get_pr_details.outputs) }}'
27
23
- uses : actions/checkout@v3
28
24
- name : " Label PR related issue for release"
29
25
uses : actions/github-script@v6
Original file line number Diff line number Diff line change 6
6
types :
7
7
- completed
8
8
9
-
10
9
jobs :
11
10
get_pr_details :
12
11
if : ${{ github.event.workflow_run.conclusion == 'success' }}
20
19
runs-on : ubuntu-latest
21
20
steps :
22
21
- name : Debug outputs
23
- run : echo " Outputs ${{ toJSON(needs.get_pr_details.outputs) }}"
22
+ run : echo ' Outputs ${{ toJSON(needs.get_pr_details.outputs) }}'
24
23
- uses : actions/checkout@v3
25
24
- name : " Ensure related issue is present"
26
25
if : contains('["opened", "edited"]', needs.get_pr_details.outputs.prAction)
Original file line number Diff line number Diff line change 27
27
- name : checkout
28
28
uses : actions/checkout@v2
29
29
- name : Setup Node.js
30
- uses : actions/setup-node@v2
30
+ uses : actions/setup-node@v3
31
31
with :
32
32
node-version : ' 16.12'
33
33
- name : Setup python
Original file line number Diff line number Diff line change 59
59
aws-region : ${{ matrix.region }}
60
60
role-to-assume : ${{ secrets.target-account-role }}
61
61
- name : Setup Node.js
62
- uses : actions/setup-node@v2
62
+ uses : actions/setup-node@v3
63
63
with :
64
64
node-version : ' 16.12'
65
65
- name : Setup python
You can’t perform that action at this time.
0 commit comments