mirror of
http://43.153.184.91:8080/https://github.com/s4u/setup-maven-action.git
synced 2026-01-27 11:13:00 +08:00
File sync from s4u/.github - disable auto approve
This commit is contained in:
parent
d4245fa41a
commit
1907361ea9
32
.github/workflows/auto-approve.yml
vendored
32
.github/workflows/auto-approve.yml
vendored
@ -15,20 +15,20 @@ jobs:
|
||||
with:
|
||||
github-token: "${{ secrets.TECH_TOKEN }}"
|
||||
|
||||
- name: Enable auto-merge for Dependabot PRs
|
||||
if: >
|
||||
github.actor == 'dependabot[bot]'
|
||||
&& steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
|
||||
run: gh pr merge --auto --rebase "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{github.event.pull_request.html_url}}
|
||||
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||
# - name: Enable auto-merge for Dependabot PRs
|
||||
# if: >
|
||||
# github.actor == 'dependabot[bot]'
|
||||
# && steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
|
||||
# run: gh pr merge --auto --rebase "$PR_URL"
|
||||
# env:
|
||||
# PR_URL: ${{github.event.pull_request.html_url}}
|
||||
# GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||
|
||||
- name: Approve a PR
|
||||
if: >
|
||||
github.actor == 'dependabot[bot]'
|
||||
|| github.actor == 'slawekjaranowski'
|
||||
run: gh pr review --approve "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{github.event.pull_request.html_url}}
|
||||
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||
# - name: Approve a PR
|
||||
# if: >
|
||||
# github.actor == 'dependabot[bot]'
|
||||
# || github.actor == 'slawekjaranowski'
|
||||
# run: gh pr review --approve "$PR_URL"
|
||||
# env:
|
||||
# PR_URL: ${{github.event.pull_request.html_url}}
|
||||
# GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user