File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ site_url: ""
3
3
use_directory_urls : false
4
4
docs_dir : !ENV SRC
5
5
repo_url : !ENV [REPO_URL, null]
6
- edit_uri : !ENV [EDIT_URI, null ]
6
+ edit_uri : !ENV [EDIT_URI, "" ]
7
7
theme :
8
8
name : material
9
9
custom_dir : !ENV SRC_THEME
Original file line number Diff line number Diff line change @@ -11,7 +11,13 @@ if [ ! -z "${GITHUB_SERVER_URL}" -a ! -z "${GITHUB_REPOSITORY}" ] ; then
11
11
export GIT=1
12
12
export REPO_URL=" ${GITHUB_SERVER_URL} /${GITHUB_REPOSITORY} "
13
13
EDIT_URI=" ${SRC#/ } "
14
- export EDIT_URI=" ${EDIT_URI:-/ } "
14
+ case " ${GITHUB_REF} " in
15
+ refs/heads/* )
16
+ BRANCH_NAME=${GITHUB_REF# refs/ heads/ }
17
+ esac
18
+ if [ ! -z " ${BRANCH_NAME} " ] ; then
19
+ export EDIT_URI=" edit/${BRANCH_NAME} /${EDIT_URI} "
20
+ fi
15
21
fi
16
22
export SRC=${WORKSPACE%/ } /${SRC#/ }
17
23
# PlantUML !include root folder
You can’t perform that action at this time.
0 commit comments