Skip to content

Commit

Permalink
github/workflows: run black also on pull requests
Browse files Browse the repository at this point in the history
It's happening quite often to have CI broken on the main branch
because we only run `black` on merges, to prevent these problems,
let's run `black` or PR as well.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
  • Loading branch information
stefano-garzarella committed Sep 6, 2024
1 parent ec9f196 commit 2df16d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/black.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
on:
push:
pull_request:

jobs:
black:
Expand All @@ -11,4 +12,4 @@ jobs:
run: pip install black

- name: Run black
run: black . --check
run: black . --check

0 comments on commit 2df16d8

Please sign in to comment.