File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 3535 export CONFIG_FILE=" ${GITHUB_WORKSPACE} /mkdocs.yml"
3636fi
3737
38+ if [ -n " ${GITHUB_ORIGIN} " ]; then
39+ print_info " setup with GITHUB_ORIGIN"
40+ else
41+ export CONFIG_FILE=${GITHUB_REPOSITORY}
42+ fi
43+
3844if [ -n " ${GITHUB_TOKEN} " ]; then
3945 print_info " setup with GITHUB_TOKEN"
40- remote_repo=" https://x-access-token:${GITHUB_TOKEN} @${GITHUB_DOMAIN:- " github.com" } /${GITHUB_REPOSITORY } .git"
46+ remote_repo=" https://x-access-token:${GITHUB_TOKEN} @${GITHUB_DOMAIN:- " github.com" } /${GITHUB_ORIGIN } .git"
4147elif [ -n " ${PERSONAL_TOKEN} " ]; then
4248 print_info " setup with PERSONAL_TOKEN"
43- remote_repo=" https://x-access-token:${PERSONAL_TOKEN} @${GITHUB_DOMAIN:- " github.com" } /${GITHUB_REPOSITORY } .git"
49+ remote_repo=" https://x-access-token:${PERSONAL_TOKEN} @${GITHUB_DOMAIN:- " github.com" } /${GITHUB_ORIGIN } .git"
4450else
4551 print_info " no token found; linting"
4652 exec -- mkdocs build --config-file " ${CONFIG_FILE} "
You can’t perform that action at this time.
0 commit comments