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.