Skip preview workflow for fork PRs
Fork PRs don't have access to repository secrets, causing the GCP auth and PR comment steps to fail. Instead of failing, skip the preview job entirely for fork PRs. The job will show as 'skipped' rather than 'failed', allowing fork PRs to be merged based on the CI check alone. Claude-Generated-By: Claude Code (cli/claude-opus-4-5=100%) Claude-Steers: 2 Claude-Permission-Prompts: 1 Claude-Escapes: 0
This commit is contained in:
parent
4e08d76e95
commit
a1e9b03831
1 changed files with 2 additions and 0 deletions
2
.github/workflows/preview.yml
vendored
2
.github/workflows/preview.yml
vendored
|
|
@ -16,6 +16,8 @@ jobs:
|
|||
preview:
|
||||
name: Preview Changes
|
||||
runs-on: ubuntu-latest
|
||||
# Skip preview for fork PRs - they don't have access to secrets
|
||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
||||
environment: production
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
|
|
|||
Loading…
Reference in a new issue