github/token
This commit is contained in:
parent
b2db44b58b
commit
1f18d97709
1 changed files with 3 additions and 4 deletions
7
pidd.sh
7
pidd.sh
|
@ -353,12 +353,11 @@ Acquire::https::Verify-Peer False;
|
||||||
if [ -n "${GITHUB_ACTIONS}" ] ; then
|
if [ -n "${GITHUB_ACTIONS}" ] ; then
|
||||||
# github → gitea → forgejo
|
# github → gitea → forgejo
|
||||||
if [ -n "${GITHUB_SERVER_URL}" ] ; then
|
if [ -n "${GITHUB_SERVER_URL}" ] ; then
|
||||||
|
PIDD_PROJECT_ROOT="$(dirname "${GITHUB_SERVER_URL}")//"
|
||||||
if [ -n "${GITHUB_TOKEN}" ] ; then
|
if [ -n "${GITHUB_TOKEN}" ] ; then
|
||||||
PIDD_PROJECT_ROOT="$(dirname "${GITHUB_SERVER_URL}")\
|
PIDD_PROJECT_ROOT="${PIDD_PROJECT_ROOT}${GITHUB_TOKEN}@"
|
||||||
//${GITHUB_TOKEN}@$(basename "${GITHUB_SERVER_URL}")"
|
|
||||||
else
|
|
||||||
pidd_error_ci "GITHUB_TOKEN"
|
|
||||||
fi
|
fi
|
||||||
|
PIDD_PROJECT_ROOT="${PIDD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
|
||||||
else
|
else
|
||||||
pidd_error_ci "GITHUB_SERVER_URL"
|
pidd_error_ci "GITHUB_SERVER_URL"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue