Create auto-approve.yml
This commit is contained in:
parent
94df384934
commit
df1e669aa4
1 changed files with 26 additions and 0 deletions
26
.github/workflows/auto-approve.yml
vendored
Normal file
26
.github/workflows/auto-approve.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Auto approve
|
||||||
|
|
||||||
|
on: pull_request
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-approve:
|
||||||
|
|
||||||
|
name: Auto approve Pull Request
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# for hmarr/auto-approve-action to approve PRs
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
# Only run this on the main repo
|
||||||
|
if: github.event.pull_request.head.repo.full_name == 'EmotionChild/SupportChild'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Approve via actions
|
||||||
|
uses: hmarr/auto-approve-action@v2.2.1
|
||||||
|
if: github.actor == 'EmotionChild' || github.actor == 'dependabot[bot]'
|
||||||
|
with:
|
||||||
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
Loading…
Reference in a new issue