Skip to content

Commit a1e9b03

Browse files
committed
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
1 parent 4e08d76 commit a1e9b03

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎.github/workflows/preview.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
preview:
1717
name: Preview Changes
1818
runs-on: ubuntu-latest
19+
# Skip preview for fork PRs - they don't have access to secrets
20+
if: github.event.pull_request.head.repo.full_name == github.repository
1921
environment: production
2022
steps:
2123
- name: Checkout code

0 commit comments

Comments
 (0)