Compare commits

...

4 Commits

Author SHA1 Message Date
Sayak Paul
936e6192b1 Merge branch 'main' into improve-security-stylebot 2025-02-27 09:09:52 +05:30
sayakpaul
6a478569f0 2025-02-26 15:34:34 +05:30
Sayak Paul
719d0ce7a7 Merge branch 'main' into improve-security-stylebot 2025-02-26 15:32:22 +05:30
sayakpaul
be16b1bcdf improve security for the stylebot. 2025-02-26 15:30:08 +05:30

View File

@@ -64,18 +64,38 @@ jobs:
run: |
pip install .[quality]
- name: Download Makefile from main branch
- name: Download necessary files from main branch of Diffusers
run: |
curl -o main_Makefile https://raw.githubusercontent.com/huggingface/diffusers/main/Makefile
curl -o main_setup.py https://raw.githubusercontent.com/huggingface/diffusers/refs/heads/main/setup.py
curl -o main_check_doc_toc.py https://raw.githubusercontent.com/huggingface/diffusers/refs/heads/main/utils/check_doc_toc.py
- name: Compare Makefiles
- name: Compare the files and raise error if needed
run: |
diff_failed=0
if ! diff -q main_Makefile Makefile; then
echo "Error: The Makefile has changed. Please ensure it matches the main branch."
diff_failed=1
fi
if ! diff -q main_setup.py setup.py; then
echo "Error: The setup.py has changed. Please ensure it matches the main branch."
diff_failed=1
fi
if ! diff -q main_check_doc_toc.py utils/check_doc_toc.py; then
echo "Error: The utils/check_doc_toc.py has changed. Please ensure it matches the main branch."
diff_failed=1
fi
if [ $diff_failed -eq 1 ]; then
echo "❌ Error happened as we detected changes in the files that should not be changed ❌"
exit 1
fi
echo "No changes in Makefile. Proceeding..."
rm -rf main_Makefile
echo "No changes in the files. Proceeding..."
rm -rf main_Makefile main_setup.py main_check_doc_toc.py
- name: Run make style and make quality
run: |