Skip to content

Commit 74554f1

Browse files
committed
Prevent workflow failures on forks
1 parent 4be5230 commit 74554f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
# This job does nothing and is only used for the branch protection
4848
# or multi-stage CI jobs, like making sure that all tests pass before
4949
# a publishing job is started.
50-
if: always()
50+
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
5151

5252
needs:
5353
- build

.github/workflows/translation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18+
if: $${ github.repository_owner == 'pypa' }}
1819

1920
steps:
2021
- name: Grab the repo src

0 commit comments

Comments
 (0)