From 17ee4d4f1772ee4bab6c2a4af239f308bac4ec71 Mon Sep 17 00:00:00 2001 From: Kath Sherratt <62290797+kathsherratt@users.noreply.github.com> Date: Tue, 24 Jan 2023 12:16:09 +0000 Subject: [PATCH] use github.repository_owner switch to `if: github.repository_owner ==` rather than `if: github.repository ==` so that actions to run on schedule (currently they get skipped) --- .github/workflows/ECDC.yml | 2 +- .github/workflows/JHU.yml | 2 +- .github/workflows/create-parquet.yml | 2 +- .github/workflows/ensemble.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/render-readme.yml | 2 +- .github/workflows/reports-country.yml | 2 +- .github/workflows/reports-model.yml | 2 +- .github/workflows/scoring.yml | 2 +- .github/workflows/visualisation.yml | 2 +- .github/workflows/zoltar-upload.yml | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ECDC.yml b/.github/workflows/ECDC.yml index 0796fba497..0e7d687892 100644 --- a/.github/workflows/ECDC.yml +++ b/.github/workflows/ECDC.yml @@ -6,7 +6,7 @@ on: jobs: get_ecdc: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-20.04 env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/JHU.yml b/.github/workflows/JHU.yml index 11b0a3ca67..f2d076662f 100644 --- a/.github/workflows/JHU.yml +++ b/.github/workflows/JHU.yml @@ -6,7 +6,7 @@ on: jobs: get_jhu: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/create-parquet.yml b/.github/workflows/create-parquet.yml index 763068dbaa..0c887bab81 100644 --- a/.github/workflows/create-parquet.yml +++ b/.github/workflows/create-parquet.yml @@ -5,7 +5,7 @@ on: jobs: create-parquet: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ensemble.yml b/.github/workflows/ensemble.yml index 3928f906b9..b9332e859f 100644 --- a/.github/workflows/ensemble.yml +++ b/.github/workflows/ensemble.yml @@ -6,7 +6,7 @@ on: jobs: ensemble: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-20.04 env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3832da9bef..bcb307a06e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: jobs: release: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/render-readme.yml b/.github/workflows/render-readme.yml index feb3675fb0..43002e6a27 100644 --- a/.github/workflows/render-readme.yml +++ b/.github/workflows/render-readme.yml @@ -9,7 +9,7 @@ name: Render README jobs: render: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' name: Render README runs-on: ubuntu-latest env: diff --git a/.github/workflows/reports-country.yml b/.github/workflows/reports-country.yml index fd8b4e8384..165a60bb7f 100644 --- a/.github/workflows/reports-country.yml +++ b/.github/workflows/reports-country.yml @@ -14,7 +14,7 @@ on: jobs: country_reports: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/reports-model.yml b/.github/workflows/reports-model.yml index 92b822abdc..c0188bef69 100644 --- a/.github/workflows/reports-model.yml +++ b/.github/workflows/reports-model.yml @@ -14,7 +14,7 @@ on: jobs: model_reports: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/scoring.yml b/.github/workflows/scoring.yml index 35ec01ebd3..2bb2b077a8 100644 --- a/.github/workflows/scoring.yml +++ b/.github/workflows/scoring.yml @@ -5,7 +5,7 @@ on: - cron: "0 9 * * 0" jobs: scores: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-20.04 env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/visualisation.yml b/.github/workflows/visualisation.yml index f487c08a56..4c00457fe9 100644 --- a/.github/workflows/visualisation.yml +++ b/.github/workflows/visualisation.yml @@ -6,7 +6,7 @@ on: jobs: create-files: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/zoltar-upload.yml b/.github/workflows/zoltar-upload.yml index bad6dcd5e0..4466ba6966 100644 --- a/.github/workflows/zoltar-upload.yml +++ b/.github/workflows/zoltar-upload.yml @@ -7,7 +7,7 @@ on: jobs: build: - if: github.repository == 'covid19-forecast-hub-europe' + if: github.repository_owner == 'covid19-forecast-hub-europe' runs-on: ubuntu-latest steps: