Skip to content

Commit

Permalink
Create github action to update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
manuellysuzik authored Aug 9, 2023
1 parent 28d765f commit a61fbcc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,24 @@ jobs:
- run: pip install mkdocs-mermaid2-plugin
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Publish docs
run: mkdocs gh-deploy --force
run: mkdocs gh-deploy --force

update-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Update Gitlab Documentation
run: |
GL_BRANCH_NAME="documentation-ref_$GITHUB_SHA"
cd ..
git clone ${{ secrets.GITLAB_DOC_URL }}
cd docs
git config user.name ${{ secrets.GITLAB_USER }}
git config user.email ${{ secrets.GITLAB_EMAIL }}
cp ../maestro/**/*.md .
git checkout -b $GL_BRANCH_NAME
git add .
git commit --allow-empty -m "Created by $GITHUB_ACTOR"
git push origin $GL_BRANCH_NAME
1 change: 0 additions & 1 deletion docs/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ The following tutorials are available for this module:
* [Configuring Events Forwarding](./tutorials/EventsForwarding.md)

* [Development](./tutorials/Development.md)

0 comments on commit a61fbcc

Please sign in to comment.