Skip to content

Commit

Permalink
adding markdown generation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TuanaCelik committed Sep 6, 2022
1 parent 7649cf4 commit 2ac7a20
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/markdowns.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Create Markdowns

on:
workflow_dispatch: # Activate this workflow manually
pull_request:
paths:
- 'tutorials/*.*'


jobs:

docs-check:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies

- name: Install Dependencies and Generate Markdown
run: |
pip install -r scripts/requirements.txt
python scripts/generate_markdowns.py
- name: Status
run: |
if [[ `git status --porcelain` ]]; then
git status
echo "##################################################################################################"
echo "#"
echo "# CHECK FAILED! You need to update the static version of the tutorials."
echo "#"
echo "# Please run the tutorials documentation update script:"
echo "#"
echo "# python .github/utils/convert_notebooks_into_webpages.py"
echo "#"
echo "# or see https://github.com/deepset-ai/haystack/blob/main/CONTRIBUTING.md for help."
echo "#"
echo "# If you have further problems, please open an issue: https://github.com/deepset-ai/haystack/issues"
echo "#"
echo "##################################################################################################"
exit 1
fi

0 comments on commit 2ac7a20

Please sign in to comment.