Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
6edb774b
Unverified
Commit
6edb774b
authored
Apr 03, 2025
by
célina
Committed by
GitHub
Apr 03, 2025
Browse files
Update Style Bot workflow (#11202)
update style bot workflow
parent
480510ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
.github/workflows/pr_style_bot.yml
.github/workflows/pr_style_bot.yml
+0
-34
No files found.
.github/workflows/pr_style_bot.yml
View file @
6edb774b
...
@@ -13,39 +13,5 @@ jobs:
...
@@ -13,39 +13,5 @@ jobs:
uses
:
huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
uses
:
huggingface/huggingface_hub/.github/workflows/style-bot-action.yml@main
with
:
with
:
python_quality_dependencies
:
"
[quality]"
python_quality_dependencies
:
"
[quality]"
pre_commit_script_name
:
"
Download
and
Compare
files
from
the
main
branch"
pre_commit_script
:
|
echo "Downloading the files from the main branch"
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
echo "Compare the files and raise error if needed"
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 the files. Proceeding..."
rm -rf main_Makefile main_setup.py main_check_doc_toc.py
style_command
:
"
make
style
&&
make
quality"
secrets
:
secrets
:
bot_token
:
${{ secrets.GITHUB_TOKEN }}
bot_token
:
${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment