Skip to content

Commit

Permalink
fix reset commits
Browse files Browse the repository at this point in the history
  • Loading branch information
manuellysuzik authored Aug 7, 2023
1 parent 6b13f10 commit 757d864
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ jobs:
fetch-depth: 0
- name: Update Gitlab Documentation
run: |
LATEST_TAG=$(git rev-parse $GITHUB_REF)
BRANCH_NAME="documentation-ref_$LATEST_TAG"
CURRENT_GH_BRANCH=$(git branch --show-current)
LATEST_TAG=$(git rev-parse $CURRENT_GH_BRANCH)
GL_BRANCH_NAME="documentation-ref_$CURRENT_GH_BRANCH"
git config user.name ${{ secrets.GITLAB_USER }}
git config user.email ${{ secrets.GITLAB_EMAIL }}
git remote set-url origin ${{ secrets.GITLAB_DOC_URL }}
git checkout -b $BRANCH_NAME
git cherry-pick -n $LATEST_TAG
git reset --hard HEAD
git reset $(git merge-base $CURRENT_GH_BRANCH $GL_BRANCH_NAME)
git add \*.md docs/
git commit --allow-empty -m "Created by $GITHUB_ACTOR"
git push origin $BRANCH_NAME

0 comments on commit 757d864

Please sign in to comment.