Skip to content

Commit fea8f84

Browse files
committed
fixes
1 parent a7b04ff commit fea8f84

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/pr_style_bot.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,20 @@ jobs:
6464
run: |
6565
pip install .[quality]
6666
67+
- name: Download Makefile from main branch
68+
run: |
69+
curl -o main_Makefile https://raw.githubusercontent.com/huggingface/diffusers/main/Makefile
70+
71+
- name: Compare Makefiles
72+
run: |
73+
if ! diff -q main_Makefile Makefile; then
74+
echo "Error: The Makefile has changed. Please ensure it matches the main branch."
75+
exit 1
76+
fi
77+
echo "No changes in Makefile. Proceeding..."
78+
6779
- name: Run make style and make quality
6880
run: |
69-
# Should we be comparing the Makefile to check for any differences with `diffusers` main?
7081
make style && make quality
7182
7283
- name: Commit and push changes

0 commit comments

Comments
 (0)