mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
Check if content is updated
This commit is contained in:
parent
0e884aa267
commit
adfeec63f1
4
.github/workflows/autodocs.yml
vendored
4
.github/workflows/autodocs.yml
vendored
@ -26,11 +26,15 @@ jobs:
|
|||||||
- name: Update Docs
|
- name: Update Docs
|
||||||
run: |
|
run: |
|
||||||
output="${{ steps.run-launcher-help.outputs.output }}"
|
output="${{ steps.run-launcher-help.outputs.output }}"
|
||||||
|
launcher_content=$(/docs/source/basic_tutorials/launcher.md)
|
||||||
|
|
||||||
|
if [ "$launcher_content" != "$output" ]; then
|
||||||
rm /docs/source/basic_tutorials/launcher.md
|
rm /docs/source/basic_tutorials/launcher.md
|
||||||
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
||||||
echo $output >> /docs/source/basic_tutorials/launcher.md
|
echo $output >> /docs/source/basic_tutorials/launcher.md
|
||||||
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
||||||
echo "Docs are updated!"
|
echo "Docs are updated!"
|
||||||
|
|
||||||
git add launcher.md
|
git add launcher.md
|
||||||
git commit -m "Update launcher.md"
|
git commit -m "Update launcher.md"
|
||||||
git push
|
git push
|
||||||
|
Loading…
Reference in New Issue
Block a user