Skip to content

Commit 565f312

Browse files
chore: sync files with beam-community/common-config (#105)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8e2d027 commit 565f312

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/dependabot.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This file is synced with beam-community/common-config. Any changes will be overwritten.
2+
3+
name: Dependabot
4+
5+
on:
6+
pull_request:
7+
types:
8+
- opened
9+
- reopened
10+
- synchronize
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
16+
jobs:
17+
Dependabot:
18+
runs-on: ubuntu-latest
19+
if: github.event.pull_request.user.login == 'dependabot[bot]'
20+
21+
steps:
22+
- name: Fetch Metadata
23+
id: metadata
24+
uses: dependabot/fetch-metadata@v2
25+
with:
26+
github-token: $
27+
28+
- name: Approve PR
29+
run: gh pr review --approve "$PR_URL"
30+
env:
31+
PR_URL: $
32+
GH_TOKEN: $
33+
34+
- name: Enable auto-merge for patch and minor updates
35+
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.dependency-type == 'direct:production'
36+
run: gh pr merge --auto --squash "$PR_URL"
37+
env:
38+
PR_URL: $
39+
GH_TOKEN: $

0 commit comments

Comments
 (0)