mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-10 20:04:52 +00:00
minor fix and removed credentials
This commit is contained in:
parent
c2eaa28e4b
commit
1da6e241cf
33
.github/workflows/auto_docs.yml
vendored
Normal file
33
.github/workflows/auto_docs.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Automatic Documentation for Launcher
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update_output:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run TGI Launcher docs
|
||||||
|
id: run-launcher-help
|
||||||
|
run: |
|
||||||
|
output=$(text-generation-launcher --help)
|
||||||
|
echo "::set-output name=output::$output"
|
||||||
|
|
||||||
|
- name: Update Docs
|
||||||
|
run: |
|
||||||
|
output="${{ steps.run-launcher-help.outputs.output }}"
|
||||||
|
|
||||||
|
echo $output >> ../../docs/source/basic_tutorials/launcher.md
|
||||||
|
|
||||||
|
git add launcher.md
|
||||||
|
git commit -m "Update launcher.md"
|
||||||
|
git push
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user