Skip to content

Commit 8f9056c

Browse files
committed
add gh compability check and auto merge actions
1 parent 81ce4b1 commit 8f9056c

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/auto-merge.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 🤖 Auto Merge
2+
3+
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
15+
16+
jobs:
17+
auto-merge:
18+
runs-on: ubuntu-latest
19+
if: github.actor == 'dependabot[bot]'
20+
steps:
21+
- uses: actions/checkout@v4
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
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: ♾️ Compatibility Checks
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
branches:
7+
- dev
8+
9+
jobs:
10+
check:
11+
if: github.actor == 'dependabot[bot]'
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: projectdiscovery/actions/setup/go/compatibility-checks@master

0 commit comments

Comments
 (0)