Skip to content

Commit

Permalink
Update mkdocs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
manuellysuzik authored Aug 7, 2023
1 parent cf391f9 commit 2b58b4d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,17 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
env:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
token: ${{ secrets.GITLAB_DOCS_TOKEN }}

- name: Update Gitlab Documentation
run: |
echo Starting to push documentation changes to gitlab
LATEST_TAG=$(git describe --tags --always --abbrev=0)
BRANCH_NAME="update-maestro-documentation_$LATEST_TAG"
echo Starting to push documentation changes to gitlab...
git config user.name ${{ secrets.GITLAB_USER }}
git config user.email ${{ secrets.GITLAB_EMAIL }}
git remote set-url origin ${{ secrets.GITLAB_DOC_URL }}
git cherry-pick $LATEST_TAG && git commit -m "Created by ${{github.event.pull_request.assignee.email}}"
git push origin main

0 comments on commit 2b58b4d

Please sign in to comment.