mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 22:32:39 +01:00
@@ -2,8 +2,8 @@
|
|||||||
set -e
|
set -e
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
if [[ -z "$GITHUB_TOKEN" ]]; then
|
if [[ -z "$TOKEN" ]]; then
|
||||||
echo "Set the GITHUB_TOKEN env variable."
|
echo "Set the TOKEN env variable."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -15,7 +15,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 ${GITHUB_TOKEN}"
|
AUTH_HEADER="Authorization: token ${TOKEN}"
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
local files
|
local files
|
||||||
|
|||||||
Reference in New Issue
Block a user