1717project=$1
1818buildtype=$2
1919
20- if [ -z " ${GH_TOKEN:- } " ]; then
21- echo " $0 : GH_TOKEN (GitHub App token) is required but not set" >&2
22- exit 66
23- fi
24-
25- echo " header=\" Authorization: Bearer ${GH_TOKEN} \" " > ~ /.curlrc
26-
27- # ensuring GH_TOKEN usage for clones/fetches
28- git config --global url." https://x-access-token:${GH_TOKEN} @github.com/" .insteadOf " https://github.com/"
20+ git config --global url." https://x-access-token:${GITHUB_TOKEN} @github.com/" .insteadOf " https://github.com/"
2921
3022name=$( git config --get user.name)
3123email=$( git config --get user.email)
@@ -62,7 +54,7 @@ while read -r line; do
6254 continue
6355 fi
6456 args+=" run --rm -v ${outputdir} :/packages -v ${buildfilesdir} /deb:/buildfiles:ro "
65- args+=" -e GH_TOKEN =${GH_TOKEN } -e DEBFULLNAME='${name} ' -e DEBEMAIL='${email} ' "
57+ args+=" -e GITHUB_TOKEN =${GITHUB_TOKEN } -e DEBFULLNAME='${name} ' -e DEBEMAIL='${email} ' "
6658 args+=" citusdata/packaging:${os} -${release} -all $buildtype \n"
6759 elif [[ " ${os} " = ' centos' ]] || [[ " ${os} " = ' fedora' ]] || [[ " ${os} " = ' oraclelinux' ]]; then
6860 # shellcheck source=/dev/null
@@ -88,13 +80,13 @@ while read -r line; do
8880 fi
8981 pgshort=${pgversion// ./ }
9082 args+=" run --rm -v ${outputdir} :/packages -v ${buildfilesdir} /rpm:/buildfiles:ro "
91- args+=" -e GH_TOKEN =${GH_TOKEN } -e RPM_PACKAGER='${packager} ' "
83+ args+=" -e GITHUB_TOKEN =${GITHUB_TOKEN } -e RPM_PACKAGER='${packager} ' "
9284 args+=" citusdata/packaging:${os} -${release} -pg${pgshort} $buildtype \n"
9385 done
9486 elif [[ " ${os} " = ' pgxn' ]]; then
9587 if [[ " ${project} " = ' citus' ]] && [[ " ${buildtype} " = ' release' ]]; then
9688 args+=" run --rm -v ${outputdir} :/packages -v ${buildfilesdir} /pgxn:/buildfiles:ro "
97- args+=" -e GH_TOKEN =${GH_TOKEN } citusdata/packaging:${os} -all $buildtype \n"
89+ args+=" -e GITHUB_TOKEN =${GITHUB_TOKEN } citusdata/packaging:${os} -all $buildtype \n"
9890 else
9991 echo " skipping PGXN... unsupported for this build" >&2
10092 fi
0 commit comments