Commit 05bedcc6 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Documentation: fixed branch name for CI builds

parent 568b4084
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -31,8 +31,13 @@ done
rm -rf ./html/

# Assemble environment variables which are used in the Doxyfile
#PROJECT_NUMBER="version $(git branch --show-current):$(git log -1 --format="%h (%cd)")"
PROJECT_NUMBER="version $(git branch --show-current):$(git rev-parse --short HEAD)"
if [[ "$CI_COMMIT_REF_NAME" == "" ]]; then
   _branch=$(git branch --show-current)
else
   _branch="$CI_COMMIT_REF_NAME"
fi
#PROJECT_NUMBER="version $_branch:$(git log -1 --format="%h (%cd)")"
PROJECT_NUMBER="version $_branch:$(git rev-parse --short HEAD)"

# Generate documentation
PROJECT_NUMBER="$PROJECT_NUMBER" doxygen