From 1da6e241cf089c5899f0ac7ae41f6e26390d64d2 Mon Sep 17 00:00:00 2001 From: Merve Noyan Date: Thu, 21 Sep 2023 11:46:06 +0200 Subject: [PATCH] minor fix and removed credentials --- .github/workflows/auto_docs.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/auto_docs.yml diff --git a/.github/workflows/auto_docs.yml b/.github/workflows/auto_docs.yml new file mode 100644 index 00000000..8877606b --- /dev/null +++ b/.github/workflows/auto_docs.yml @@ -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 }}