Added a check for the linqs/psl repo to documentation deployment.
@@ -18,7 +18,8 @@ readonly GIT_USER_NAME='LINQS Deploy'
# Check if we are in the correct CI state for this script.
function verifyCIState() {
- local gitref=$1
+ local repoId=$1
+ local gitref=$2
local returnValue=0
local shift=0
@@ -35,6 +36,11 @@ function verifyCIState() {
returnValue=$((returnValue | (1 << shift++)))
fi
+ if [[ "${repoId}" != 'linqs/psl' ]]; then
+ echo "Deployment will only happen on the 'linqs/psl' respository. Found '${repoId}'."
+ returnValue=$((returnValue | (1 << shift++)))
+ fi
+
# Bail if no deploy keys exist.
if [[ -z "${LINQS_DEPLOY_TOKEN}" ]]; then
echo "Cannot find deploy token."
@@ -95,7 +101,7 @@ function main() {
fi
buildDocs
- deployDocs "${GITHUB_REF}"
+ deployDocs "${GITHUB_REPOSITORY}" "${GITHUB_REF}"
}
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main "$@"
