File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,3 @@ updates:
1414 directory : " /cdk"
1515 schedule :
1616 interval : " weekly"
17-
18- - package-ecosystem : " github-actions"
19- directory : " /cdk"
20- schedule :
21- interval : " weekly"
Original file line number Diff line number Diff line change 11name : Dependabot auto-merge
2- on :
3- workflow_run :
4- workflows : ["Test AppSync utils"]
5- types :
6- - completed
2+ on : pull_request
73
84permissions :
9- contents : write
105 pull-requests : write
116
127jobs :
138 dependabot :
149 runs-on : ubuntu-latest
15- if : github.actor == 'dependabot[bot]'
10+ if : github.actor == 'dependabot[bot]' && github.repository == 'localstack/appsync-utils'
1611 steps :
1712 - name : Dependabot metadata
1813 id : metadata
19- uses : dependabot/fetch-metadata@v1
14+ uses : dependabot/fetch-metadata@v2
2015 with :
2116 github-token : " ${{ secrets.GITHUB_TOKEN }}"
22-
2317 - name : Enable auto-merge for Dependabot PRs
24- if : ${{ github.event.workflow_run.conclusion == 'success' }}
2518 run : gh pr merge --auto --squash "$PR_URL"
2619 env :
27- PR_URL : ${{ github.event.pull_request.html_url }}
28- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29-
30- - name : Comment on PR if tests failed
31- if : ${{ github.event.workflow_run.conclusion == 'failure' }}
32- run : |
33- gh pr comment "$PR_URL" --body "🚫 Auto-merge skipped: one or more test jobs failed.
34-
35- Please review the failing checks and resolve any issues.
36- "
37- env :
38- PR_URL : ${{ github.event.pull_request.html_url }}
39- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20+ PR_URL : ${{github.event.pull_request.html_url}}
21+ GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments