ci: skip the per-PR OTA job for bot authors (#11273)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Austin McKinley
2026-07-24 19:07:57 -07:00
committed by GitHub
parent 9eb78c0f6c
commit 76a928a7af
+8 -1
View File
@@ -234,12 +234,19 @@ jobs:
# This matches the fork-guard gate the other jobs in this workflow use;
# author_association is deliberately NOT checked (it can't identify a private
# org member and would skip their PRs).
#
# Bot authors are excluded: Dependabot pushes in-repo branches, so it passes
# the fork guard, but GitHub withholds repo secrets from Dependabot-triggered
# runs. EXPO_TOKEN is then empty and the job fails at setup — a red check on
# every dependabot PR. There is no OTA preview worth publishing for a
# dependency bump anyway.
publish-pr-ota:
name: Publish PR OTA to denis
runs-on: ubuntu-latest
if: >-
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.type != 'Bot'
concurrency:
group: pr-ota-${{ github.event.pull_request.number }}
cancel-in-progress: true