Skip to content

Commit 595ead5

Browse files
committed
refactor: improve deploy workflow fork detection using repository ownership check
1 parent 9cd9bae commit 595ead5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-release-live.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
timeout-minutes: 45
4747
needs: test-build
4848

49-
# If secrets aren't configured (e.g. forks), do not attempt deploy.
50-
if: ${{ secrets.CLOUDFLARE_API_TOKEN != '' }}
49+
# Skip deploy for forks (they won't have secrets anyway)
50+
if: github.repository_owner == 'cloudflare'
5151

5252
env:
5353
CI: true

0 commit comments

Comments
 (0)