fix(ci): skip bot PR authors and drop merge-token write

This commit is contained in:
Adam Moussa 2026-08-21 18:26:30 -04:00
parent 9a143128ce
commit ae54d62c02
No known key found for this signature in database

View file

@ -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