Skip to content

Commit

Permalink
Added check for initial case where launcher doesn't exist in main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
merveenoyan authored Sep 21, 2023
1 parent 8ee215c commit 21f903d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/autodocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,19 @@ 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
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
rm /docs/source/basic_tutorials/launcher.md
echo '```' >> /docs/source/basic_tutorials/launcher.md
Expand Down

0 comments on commit 21f903d

Please sign in to comment.