mirror of
https://github.com/Sea-Haven-Industries/file-share.git
synced 2026-09-30 07:43:17 +00:00
fix(ci): skip bot PR authors and drop merge-token write
This commit is contained in:
parent
9a143128ce
commit
ae54d62c02
1 changed files with 3 additions and 4 deletions
7
.github/workflows/auto-merge.yaml
vendored
7
.github/workflows/auto-merge.yaml
vendored
|
|
@ -6,7 +6,6 @@ on:
|
|||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
|
|
@ -14,8 +13,8 @@ jobs:
|
|||
if: >-
|
||||
github.event.pull_request.draft == false
|
||||
&& github.event.pull_request.head.repo.full_name == github.repository
|
||||
&& github.actor != 'dependabot[bot]'
|
||||
&& github.actor != 'renovate[bot]'
|
||||
&& github.event.pull_request.user.login != 'dependabot[bot]'
|
||||
&& github.event.pull_request.user.login != 'renovate[bot]'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Enable squash auto-merge
|
||||
|
|
@ -29,4 +28,4 @@ jobs:
|
|||
echo "auto-merge already enabled"
|
||||
exit 0
|
||||
fi
|
||||
gh pr merge "$PR" --repo "$REPO" --auto --squash
|
||||
gh pr merge "$PR" --repo "$REPO" --auto
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue