From 74554f1a104957229dc7c8d2b505fa9048a1209f Mon Sep 17 00:00:00 2001 From: Jean Abou Samra Date: Tue, 5 Dec 2023 21:25:36 +0100 Subject: [PATCH 1/3] Prevent workflow failures on forks --- .github/workflows/test.yml | 2 +- .github/workflows/translation.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 581b644ca..9ca602b2a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,7 +47,7 @@ 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 diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index d2ac8db35..85152af5b 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -15,6 +15,7 @@ env: jobs: build: runs-on: ubuntu-latest + if: $${ github.repository_owner == 'pypa' }} steps: - name: Grab the repo src From cd52365f8a96e9cf9840ea3f4f9cab0bb2a0a1d7 Mon Sep 17 00:00:00 2001 From: Jean Abou-Samra Date: Tue, 5 Dec 2023 22:14:27 +0100 Subject: [PATCH 2/3] Update .github/workflows/test.yml Co-authored-by: Sviatoslav Sydorenko --- .github/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ca602b2a..7645d7fcc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }} + if: >- + github.repository_owner == 'pypa' + || github.event_name != 'schedule' needs: - build From 539d2917ad6568f6789af48f7929c599ae750e97 Mon Sep 17 00:00:00 2001 From: Jean Abou-Samra Date: Tue, 5 Dec 2023 22:14:34 +0100 Subject: [PATCH 3/3] Update .github/workflows/translation.yml Co-authored-by: Sviatoslav Sydorenko --- .github/workflows/translation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 85152af5b..ffb2a9d05 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -15,7 +15,7 @@ env: jobs: build: runs-on: ubuntu-latest - if: $${ github.repository_owner == 'pypa' }} + if: github.repository_owner == 'pypa' steps: - name: Grab the repo src