File sync from s4u/.github - disable auto approve

This commit is contained in:
GitHub Action 2022-02-23 17:30:07 +00:00
parent d4245fa41a
commit 1907361ea9

View File

@ -15,20 +15,20 @@ jobs:
with: with:
github-token: "${{ secrets.TECH_TOKEN }}" github-token: "${{ secrets.TECH_TOKEN }}"
- name: Enable auto-merge for Dependabot PRs # - name: Enable auto-merge for Dependabot PRs
if: > # if: >
github.actor == 'dependabot[bot]' # github.actor == 'dependabot[bot]'
&& steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' # && steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --rebase "$PR_URL" # run: gh pr merge --auto --rebase "$PR_URL"
env: # env:
PR_URL: ${{github.event.pull_request.html_url}} # PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }} # GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
- name: Approve a PR # - name: Approve a PR
if: > # if: >
github.actor == 'dependabot[bot]' # github.actor == 'dependabot[bot]'
|| github.actor == 'slawekjaranowski' # || github.actor == 'slawekjaranowski'
run: gh pr review --approve "$PR_URL" # run: gh pr review --approve "$PR_URL"
env: # env:
PR_URL: ${{github.event.pull_request.html_url}} # PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }} # GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}