Skip to content

Commit 025e5e8

Browse files
committed
Add dependabot & mege in case of green PR
1 parent 0a63571 commit 025e5e8

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "github-actions"
8+
directory: "/"
9+
assignees:
10+
- "aivus"
11+
schedule:
12+
interval: "weekly"
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Dependabot auto-merge
2+
3+
on: pull_request
4+
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
9+
jobs:
10+
dependabot:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.actor == 'dependabot[bot]' }}
13+
steps:
14+
- name: Dependabot metadata
15+
id: metadata
16+
uses: dependabot/fetch-metadata@v2
17+
with:
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"
19+
20+
- name: Enable auto-merge for Dependabot PRs
21+
if: ${{contains(steps.metadata.outputs.dependency-names, 'puppeteer')}}
22+
run: gh pr merge --auto --merge "$PR_URL"
23+
env:
24+
PR_URL: ${{github.event.pull_request.html_url}}
25+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/test-compatibility.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Test compatibility with puppeteer
22

3-
on:
4-
pull_request:
5-
branches:
6-
- main
3+
on: pull_request
74

85
jobs:
96
test-compatibility:

0 commit comments

Comments
 (0)