From 06e8175bae167eaad66561a3daacbeb1784385b8 Mon Sep 17 00:00:00 2001 From: Anas Date: Fri, 20 Nov 2020 15:46:52 +0200 Subject: [PATCH 1/2] Added conditional on repository owner to prevent update-pre-commit on forks --- .github/workflows/update-pre-commit.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-pre-commit.yml b/.github/workflows/update-pre-commit.yml index 9c343652171..9be96a0e67e 100644 --- a/.github/workflows/update-pre-commit.yml +++ b/.github/workflows/update-pre-commit.yml @@ -4,6 +4,7 @@ on: - cron: '0 0 * * *' jobs: auto-update: + if: github.repository_owner == 'aiohttp' runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From e50785c78be62bb47d78200e6a25502faae50af2 Mon Sep 17 00:00:00 2001 From: Anas Date: Fri, 20 Nov 2020 15:52:14 +0200 Subject: [PATCH 2/2] Added explanation on CHANGES directory --- CHANGES/5258.bugfix | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 CHANGES/5258.bugfix diff --git a/CHANGES/5258.bugfix b/CHANGES/5258.bugfix new file mode 100644 index 00000000000..48299418522 --- /dev/null +++ b/CHANGES/5258.bugfix @@ -0,0 +1,3 @@ +Fixed github workflow `update-pre-commit` on forks, +since this workflow should run only in the main repository and also because it was giving failed jobs on all the forks. +Now it will show up as skipped workflow.