🔧 Update deploy workflows to exclude the main repository (#1284)
This commit is contained in:
2
.github/workflows/deploy-production.yml
vendored
2
.github/workflows/deploy-production.yml
vendored
@@ -7,6 +7,8 @@ on:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
# Do not deploy in the main repository, only in user projects
|
||||
if: github.repository_owner != 'tiangolo'
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- production
|
||||
|
2
.github/workflows/deploy-staging.yml
vendored
2
.github/workflows/deploy-staging.yml
vendored
@@ -7,6 +7,8 @@ on:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
# Do not deploy in the main repository, only in user projects
|
||||
if: github.repository_owner != 'tiangolo'
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- staging
|
||||
|
Reference in New Issue
Block a user