Skip to content

Commit 14c09b9

Browse files
authored
🔧 Update deploy workflows to exclude the main repository (#1284)
1 parent bb5732d commit 14c09b9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/deploy-production.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
deploy:
10+
# Do not deploy in the main repository, only in user projects
11+
if: github.repository_owner != 'tiangolo'
1012
runs-on:
1113
- self-hosted
1214
- production

.github/workflows/deploy-staging.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
jobs:
99
deploy:
10+
# Do not deploy in the main repository, only in user projects
11+
if: github.repository_owner != 'tiangolo'
1012
runs-on:
1113
- self-hosted
1214
- staging

0 commit comments

Comments
 (0)