Skip to content

Commit

Permalink
No update-precommit on forks (#5261)
Browse files Browse the repository at this point in the history
* Added conditional on repository owner to prevent update-pre-commit on forks

* Added explanation on CHANGES directory
  • Loading branch information
WisdomPill authored Nov 21, 2020
1 parent 6f73339 commit 213be22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions CHANGES/5258.bugfix
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 213be22

Please sign in to comment.