Skip to content

Commit 601eecd

Browse files
committed
Added automerge workflow
1 parent 355ee65 commit 601eecd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/merge.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: 🤖 Dependabot auto-merge
2+
on: pull_request
3+
4+
permissions:
5+
pull-requests: write
6+
contents: write
7+
8+
jobs:
9+
merge:
10+
runs-on: ubuntu-latest
11+
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'distantcam/autoctor'
12+
steps:
13+
- name: 📡 Dependabot metadata
14+
id: dependabot-metadata
15+
uses: dependabot/fetch-metadata@v2
16+
- name: ✔️ Merge PR
17+
if: |
18+
steps.dependabot-metadata.outputs.dependency-group == 'tunit'
19+
&& steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'
20+
run: gh pr merge --auto --merge "$PR_URL"
21+
env:
22+
PR_URL: ${{ github.event.pull_request.html_url }}
23+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)