Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit ad141086 authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Fix "Edit on Gitlab" for docs.beagleboard.org

parent af634843
Branches
Tags
No related merge requests found
Pipeline #5023 passed with stage
in 7 minutes and 49 seconds
......@@ -122,13 +122,7 @@ elif [ "$CI_COMMIT_TAG" != "" ]; then
export GITLAB_HOST=$CI_SERVER_HOST
export PROJECT_REPO=docs.beagleboard.io
git fetch --all -v
git checkout main
echo "git branch output check"
git branch
echo "$(git branch -a --contains tags/$CI_COMMIT_TAG)"
export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | tr -d '* ' | sed 's/.*origin\///' | head -n 1)
echo "**** $GIT_BRANCH contains tags/$CI_COMMIT_TAG ****"
git checkout $GIT_BRANCH
export PROJECT_BRANCH=$GIT_BRANCH
if [ "$GIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]; then
export VER_DIR=latest
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment