From 5ae946aa757b55b7602d496ffadef8846dc03cab Mon Sep 17 00:00:00 2001 From: Anas Date: Sat, 21 Nov 2020 13:21:19 +0200 Subject: [PATCH] No update-precommit on forks (#5261) * Added conditional on repository owner to prevent update-pre-commit on forks * Added explanation on CHANGES directory --- .github/workflows/update-pre-commit.yml | 1 + CHANGES/5258.bugfix | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 CHANGES/5258.bugfix 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 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.