Skip to content

Commit 354e7a0

Browse files
committed
Don't hardcode org name in workflow guards
1 parent 7600c4f commit 354e7a0

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/cron.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
if: github.repository_owner == 'pypa' # suppress noise in forks
11+
if: github.event.repository.fork == false # suppress noise in forks
1212
uses: ./.github/workflows/test.yml
1313

1414
...

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions: {}
2222
jobs:
2323
build:
2424
name: ${{ matrix.noxenv }}
25-
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
25+
if: ${{ github.event.repository.fork == false || github.event_name != 'schedule' }}
2626
runs-on: ubuntu-latest
2727
timeout-minutes: 20
2828
continue-on-error: >-

‎.github/workflows/translation.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18-
if: github.repository_owner == 'pypa'
18+
if: github.event.repository.fork == false
1919

2020
permissions:
2121
contents: write # to push to I18N_BRANCH

‎.github/workflows/update-uv-build-version.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
update-uv-build-version:
1212
name: Update uv_build version
13-
if: github.repository_owner == 'pypa' # suppress noise in forks
13+
if: github.event.repository.fork == false # suppress noise in forks
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write

0 commit comments

Comments
 (0)