mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
update;
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
619f41f103
commit
ea2cae1233
|
@ -2,8 +2,10 @@
|
||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ -z "$TOKEN" ]]; then
|
GITHUB_TOKEN=${GITHUB_TOKEN:-$TOKEN}
|
||||||
echo "Set the TOKEN env variable."
|
|
||||||
|
if [[ -z "$GITHUB_TOKEN" ]]; then
|
||||||
|
echo "Set the GITHUB_TOKEN env variable."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -15,7 +17,7 @@ fi
|
||||||
URI=https://api.github.com
|
URI=https://api.github.com
|
||||||
API_VERSION=v3
|
API_VERSION=v3
|
||||||
API_HEADER="Accept: application/vnd.github.${API_VERSION}+json"
|
API_HEADER="Accept: application/vnd.github.${API_VERSION}+json"
|
||||||
AUTH_HEADER="Authorization: token ${TOKEN}"
|
AUTH_HEADER="Authorization: token ${GITHUB_TOKEN}"
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
local files
|
local files
|
||||||
|
|
Loading…
Reference in New Issue
Block a user