mirror of
https://github.com/Sea-Haven-Industries/file-share.git
synced 2026-10-04 16:02:02 +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]
|
branches: [main]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -14,8 +13,8 @@ jobs:
|
||||||
if: >-
|
if: >-
|
||||||
github.event.pull_request.draft == false
|
github.event.pull_request.draft == false
|
||||||
&& github.event.pull_request.head.repo.full_name == github.repository
|
&& github.event.pull_request.head.repo.full_name == github.repository
|
||||||
&& github.actor != 'dependabot[bot]'
|
&& github.event.pull_request.user.login != 'dependabot[bot]'
|
||||||
&& github.actor != 'renovate[bot]'
|
&& github.event.pull_request.user.login != 'renovate[bot]'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Enable squash auto-merge
|
- name: Enable squash auto-merge
|
||||||
|
|
@ -29,4 +28,4 @@ jobs:
|
||||||
echo "auto-merge already enabled"
|
echo "auto-merge already enabled"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
gh pr merge "$PR" --repo "$REPO" --auto --squash
|
gh pr merge "$PR" --repo "$REPO" --auto
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue