forked from deepset-ai/haystack-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7649cf4
commit 2ac7a20
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
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 |