testservice.json added #3
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: Create Markdown | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'docs/service/*.json' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'docs/service/*.json' | |
jobs: | |
webpage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install groovy | |
run: sudo apt install groovy | |
- name: Generate sitemap.xml | |
run: groovy createSitemap.groovy > docs/sitemap.xml | |
- name: Generate catalog | |
run: cd docs ; groovy createCatalog.groovy > catalog.md ; groovy createIndex.groovy > index.md | |
- name: Generate service pages | |
run: cd docs/service ; groovy createMarkdown.groovy *.json | |
- name: Commit report | |
run: | | |
git config --global user.name 'GitHub Action' | |
git config --global user.email '[email protected]' | |
git add docs/sitemap.xml | |
git add docs/index.md | |
git add docs/catalog.md | |
git add docs/service/*.md | |
if git diff --exit-code --staged; then | |
echo "No changes" | |
else | |
git commit -m 'Updated service Markdown ' | |
git push | |
fi |