mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
Create dependabot-auto-merge.yml
This commit is contained in:
parent
e8b1d3bf0c
commit
7b5766c72d
1 changed files with 27 additions and 0 deletions
27
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
27
.github/workflows/dependabot-auto-merge.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name: Auto-merge Dependabot PRs
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Auto-approve Dependabot PRs
|
||||||
|
if: github.actor == 'dependabot[bot]'
|
||||||
|
run: gh pr review --approve "$GITHUB_REF"
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Merge Dependabot PRs
|
||||||
|
if: github.actor == 'dependabot[bot]'
|
||||||
|
run: gh pr merge --auto --squash "$GITHUB_REF"
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue