Skip to content

Commit 9cd20c6

Browse files
authored
Merge pull request pypa#1436 from jeanas/gh-ci
Prevent workflow failures on forks
2 parents 45c22c2 + 539d291 commit 9cd20c6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ 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: >-
51+
github.repository_owner == 'pypa'
52+
|| github.event_name != 'schedule'
5153
5254
needs:
5355
- build

.github/workflows/translation.yml

+1
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)