File tree 1 file changed +0
-34
lines changed
1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change 13
13
uses : huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
14
14
with :
15
15
python_quality_dependencies : " [quality]"
16
- pre_commit_script_name : " Download and Compare files from the main branch"
17
- pre_commit_script : |
18
- echo "Downloading the files from the main branch"
19
-
20
- curl -o main_Makefile https://raw.githubusercontent.com/huggingface/diffusers/main/Makefile
21
- curl -o main_setup.py https://raw.githubusercontent.com/huggingface/diffusers/refs/heads/main/setup.py
22
- curl -o main_check_doc_toc.py https://raw.githubusercontent.com/huggingface/diffusers/refs/heads/main/utils/check_doc_toc.py
23
-
24
- echo "Compare the files and raise error if needed"
25
-
26
- diff_failed=0
27
- if ! diff -q main_Makefile Makefile; then
28
- echo "Error: The Makefile has changed. Please ensure it matches the main branch."
29
- diff_failed=1
30
- fi
31
-
32
- if ! diff -q main_setup.py setup.py; then
33
- echo "Error: The setup.py has changed. Please ensure it matches the main branch."
34
- diff_failed=1
35
- fi
36
-
37
- if ! diff -q main_check_doc_toc.py utils/check_doc_toc.py; then
38
- echo "Error: The utils/check_doc_toc.py has changed. Please ensure it matches the main branch."
39
- diff_failed=1
40
- fi
41
-
42
- if [ $diff_failed -eq 1 ]; then
43
- echo "❌ Error happened as we detected changes in the files that should not be changed ❌"
44
- exit 1
45
- fi
46
-
47
- echo "No changes in the files. Proceeding..."
48
- rm -rf main_Makefile main_setup.py main_check_doc_toc.py
49
- style_command : " make style && make quality"
50
16
secrets :
51
17
bot_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments