Skip to content

Commit f8c0d55

Browse files
fix(ci): do not run format and deploys on forks (withastro#14171)
1 parent c326b7f commit f8c0d55

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/deploy-lunaria.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ permissions: {}
1313

1414
jobs:
1515
deploy:
16+
if: ${{ github.repository_owner == 'withastro' }}
1617
runs-on: ubuntu-latest
1718
timeout-minutes: 10
1819
permissions:

.github/workflows/deploy-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ concurrency:
1616
jobs:
1717
deploy-preview:
1818
if: >-
19+
github.repository_owner == 'withastro' &&
1920
github.event.workflow_run.event == 'pull_request' &&
2021
github.event.workflow_run.conclusion == 'success'
2122
runs-on: ubuntu-latest

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717

1818
jobs:
1919
deploy:
20+
if: ${{ github.repository_owner == 'withastro' }}
2021
runs-on: ubuntu-latest
2122
timeout-minutes: 30
2223
permissions:

.github/workflows/format.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions: {}
99

1010
jobs:
1111
format:
12+
if: ${{ github.repository_owner == 'withastro' }}
1213
runs-on: ubuntu-latest
1314
env:
1415
NODE_OPTIONS: "--max_old_space_size=4096"

0 commit comments

Comments
 (0)