Skip to content

Commit 9c287c9

Browse files
authored
Create dependabot-prs.yml
1 parent dd6ef49 commit 9c287c9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/dependabot-prs.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Dependabot auto-merge
2+
on: pull_request
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
jobs:
7+
dependabot:
8+
runs-on: ubuntu-latest
9+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'charlietle/opentelemetry-demo'
10+
steps:
11+
- name: Dependabot metadata
12+
id: dependabot-metadata
13+
uses: dependabot/fetch-metadata@v2
14+
- name: Enable auto-merge for Dependabot PRs
15+
if: steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'}}
16+
run: gh pr merge --auto --merge "$PR_URL"
17+
env:
18+
PR_URL: ${{github.event.pull_request.html_url}}
19+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)