Skip to content

Commit c556379

Browse files
committed
Added automerge workflow
1 parent 355ee65 commit c556379

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/merge.yml

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

0 commit comments

Comments
 (0)