Skip to content

Commit 5cc52cf

Browse files
authored
Merge pull request #173 from MarcoIeni/chore-don't-deploy-if-fork
chore: don't deploy if fork
2 parents a4a060f + a825198 commit 5cc52cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ concurrency: deploy
99

1010
jobs:
1111
deploy-to-staging:
12-
name: Deploy
12+
name: Deploy to staging
1313
runs-on: ubuntu-latest
1414
environment: staging
1515
concurrency: staging
16+
if: github.repository_owner == 'rust-lang'
1617
permissions:
1718
id-token: write
1819
contents: read
@@ -47,10 +48,11 @@ jobs:
4748
- name: Kick ECS to deploy new version
4849
run: aws ecs update-service --service bors --cluster bors --force-new-deployment
4950
deploy-to-production:
50-
name: Deploy
51+
name: Deploy to production
5152
runs-on: ubuntu-latest
5253
environment: production
5354
concurrency: production
55+
if: github.repository_owner == 'rust-lang'
5456
permissions:
5557
id-token: write
5658
contents: read

0 commit comments

Comments
 (0)