Skip to content

Commit e3298e3

Browse files
authored
fix(ci): Don't deploy docs on PRs from forks, fixes #923 (#924)
1 parent 285b94d commit e3298e3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ jobs:
102102
if: ${{ github.ref == 'refs/heads/main' }}
103103
run: npx vercel deploy packages/docs/build -t ${{ secrets.VERCEL_TOKEN }} --name typescript --scope temporal --prod --yes
104104
- name: Deploy draft docs
105-
if: ${{ github.ref != 'refs/heads/main' }}
105+
# Don't run on forks, since secrets won't be available, and command will fail
106+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.ref != 'refs/heads/main' }}
106107
run: npx vercel deploy packages/docs/build -t ${{ secrets.VERCEL_TOKEN }} --name typescript --scope temporal --yes
107108

108109
# Run TS linting and ts-prune to find unused code

0 commit comments

Comments
 (0)