ci: restrict release build to bot PRs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Parker Brown
2026-05-07 17:52:07 -07:00
parent fb92a08ca2
commit 21ee484d31
+7 -1
View File
@@ -14,7 +14,13 @@ permissions:
jobs:
build:
if: github.event_name == 'workflow_dispatch' || (startsWith(github.head_ref, 'release-please--') && github.event.pull_request.head.repo.full_name == github.repository)
if: >
github.event_name == 'workflow_dispatch' ||
(
startsWith(github.head_ref, 'release-please--') &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.type == 'Bot'
)
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v3