mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
Added check for initial case where launcher doesn't exist in main repo
This commit is contained in:
parent
75e49b8abd
commit
e74ce5a70c
11
.github/workflows/autodocs.yml
vendored
11
.github/workflows/autodocs.yml
vendored
@ -25,12 +25,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Update Docs
|
- name: Update Docs
|
||||||
run: |
|
run: |
|
||||||
|
output="${{ steps.run-launcher-help.outputs.output }}"
|
||||||
if [ ! -f "/docs/source/basic_tutorials/launcher.md" ]; then
|
if [ ! -f "/docs/source/basic_tutorials/launcher.md" ]; then
|
||||||
touch /docs/source/basic_tutorials/launcher.md
|
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
|
||||||
|
|
||||||
|
|
||||||
output="${{ steps.run-launcher-help.outputs.output }}"
|
|
||||||
launcher_content=$(/docs/source/basic_tutorials/launcher.md)
|
launcher_content=$(/docs/source/basic_tutorials/launcher.md)
|
||||||
|
|
||||||
if [ "$launcher_content" != "$output" ]; then
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user