Skip to content

Commit

Permalink
Merge pull request pypa#1436 from jeanas/gh-ci
Browse files Browse the repository at this point in the history
Prevent workflow failures on forks
  • Loading branch information
pradyunsg committed Dec 27, 2023
2 parents 45c22c2 + 539d291 commit 9cd20c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
# This job does nothing and is only used for the branch protection
# or multi-stage CI jobs, like making sure that all tests pass before
# a publishing job is started.
if: always()
if: >-
github.repository_owner == 'pypa'
|| github.event_name != 'schedule'
needs:
- build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'pypa'

steps:
- name: Grab the repo src
Expand Down

0 comments on commit 9cd20c6

Please sign in to comment.