Browse Source
🔧 Update deploy workflows to exclude the main repository (#1284)
pull/13907/head
Alejandra
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
0 deletions
-
.github/workflows/deploy-production.yml
-
.github/workflows/deploy-staging.yml
|
@ -7,6 +7,8 @@ on: |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
deploy: |
|
|
deploy: |
|
|
|
|
|
# Do not deploy in the main repository, only in user projects |
|
|
|
|
|
if: github.repository_owner != 'tiangolo' |
|
|
runs-on: |
|
|
runs-on: |
|
|
- self-hosted |
|
|
- self-hosted |
|
|
- production |
|
|
- production |
|
|
|
@ -7,6 +7,8 @@ on: |
|
|
|
|
|
|
|
|
jobs: |
|
|
jobs: |
|
|
deploy: |
|
|
deploy: |
|
|
|
|
|
# Do not deploy in the main repository, only in user projects |
|
|
|
|
|
if: github.repository_owner != 'tiangolo' |
|
|
runs-on: |
|
|
runs-on: |
|
|
- self-hosted |
|
|
- self-hosted |
|
|
- staging |
|
|
- staging |
|
|