Update autodocs.yml #30
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automatic Documentation for Launcher | |
on: | |
push: | |
branches: | |
- launcher_docs | |
jobs: | |
update_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install Launcher | |
id: install-launcher | |
run: | | |
repo_owner=${{ github.event.pull_request.head.user.login }} | |
branch=${{ github.event.pull_request.head.ref }} | |
cargo install --git git+https://github.com/${repo_owner}/text-generation-inference.git --branch ${branch} text-generation-launcher | |
- name: Update Docs | |
run: | | |
echo text-generation-launcher --help | |
output=$(text-generation-launcher --help) | |
{ echo '```'; echo $output; echo '```'; } > launcher_test.md | |
if diff launcher_test.md docs/source/basic_tutorials/launcher.md; then | |
echo "Docs aren't updated, update them!" | |
exit 1 | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |