mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
Minor fix in path
This commit is contained in:
parent
10a88586a6
commit
6572edc5ba
20
.github/workflows/autodocs.yml
vendored
20
.github/workflows/autodocs.yml
vendored
@ -26,23 +26,23 @@ jobs:
|
||||
- name: Update Docs
|
||||
run: |
|
||||
output="${{ steps.run-launcher-help.outputs.output }}"
|
||||
if [ ! -f "/docs/source/basic_tutorials/launcher.md" ]; then
|
||||
touch /docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
||||
echo $output >> /docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
||||
if [ ! -f "docs/source/basic_tutorials/launcher.md" ]; then
|
||||
touch docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> docs/source/basic_tutorials/launcher.md
|
||||
echo $output >> docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> docs/source/basic_tutorials/launcher.md
|
||||
echo "Docs are updated!"
|
||||
git add launcher.md
|
||||
git commit -m "Update launcher.md"
|
||||
git push
|
||||
fi
|
||||
|
||||
launcher_content=$(/docs/source/basic_tutorials/launcher.md)
|
||||
launcher_content=$(docs/source/basic_tutorials/launcher.md)
|
||||
if [ "$launcher_content" != "$output" ]; then
|
||||
rm /docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
||||
echo $output >> /docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> /docs/source/basic_tutorials/launcher.md
|
||||
rm docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> docs/source/basic_tutorials/launcher.md
|
||||
echo $output >> docs/source/basic_tutorials/launcher.md
|
||||
echo '```' >> docs/source/basic_tutorials/launcher.md
|
||||
echo "Docs are updated!"
|
||||
git add launcher.md
|
||||
git commit -m "Update launcher.md"
|
||||
|
Loading…
Reference in New Issue
Block a user