Skip to content

Commit a2e2644

Browse files
committed
revert automerge changes and improve with latest standards
1 parent 6c6d374 commit a2e2644

2 files changed

Lines changed: 5 additions & 28 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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"
Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,21 @@
11
name: Dependabot auto-merge
2-
on:
3-
workflow_run:
4-
workflows: ["Test AppSync utils"]
5-
types:
6-
- completed
2+
on: pull_request
73

84
permissions:
9-
contents: write
105
pull-requests: write
116

127
jobs:
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}}

0 commit comments

Comments
 (0)