Skip to content

Commit ea544ef

Browse files
authored
ci: auto-merge Dependabot PRs with the reusable workflow
1 parent e964625 commit ea544ef

1 file changed

Lines changed: 10 additions & 23 deletions

File tree

‎.github/workflows/auto-merge.yaml‎

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,15 @@
11
name: 🤖 Auto Merge
22

33
on:
4-
pull_request_review:
5-
types: [submitted]
6-
workflow_run:
7-
workflows: ["♾️ Compatibility Check"]
8-
types:
9-
- completed
10-
11-
permissions:
12-
pull-requests: write
13-
issues: write
14-
repository-projects: write
4+
pull_request:
5+
branches:
6+
- dev
157

168
jobs:
17-
auto-merge:
18-
runs-on: ubuntu-latest
19-
if: github.actor == 'dependabot[bot]'
20-
steps:
21-
- uses: actions/checkout@v7
22-
with:
23-
token: ${{ secrets.DEPENDABOT_PAT }}
24-
25-
- uses: ahmadnassri/action-dependabot-auto-merge@v2
26-
with:
27-
github-token: ${{ secrets.DEPENDABOT_PAT }}
28-
target: all
9+
dependabot:
10+
uses: projectdiscovery/workflows/.github/workflows/dependabot-auto-merge.yaml@v1
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
with:
15+
go-compat-checks: true

0 commit comments

Comments
 (0)