Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
31126a33db
commit
317c157dac
1 changed files with 5 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
set -eo pipefail
|
||||
|
||||
# These variables should be set per-instance.
|
||||
# PLEASE CHANGE THEM.
|
||||
GITEA_URL="https://git.froth.zone"
|
||||
OWNER="packaging"
|
||||
USER="oauth2" # Can be unset if $OWNER is your username or changed to your username.
|
||||
USER="oauth2" # Can be set to your username if you're not using a token.
|
||||
PACKAGER_NAME="portage"
|
||||
PACKAGER_VERSION="deps"
|
||||
|
||||
|
@ -17,9 +17,10 @@ PACKAGER_VERSION="deps"
|
|||
PACKAGE_NAME=$1
|
||||
PACKAGE_TAG=$2
|
||||
|
||||
|
||||
if [[ -z "${GITEA_TOKEN}" ]]; then
|
||||
if [[ -z "${GITHUB_TOKEN}" ]]; then
|
||||
echo "Please set GITEA_TOKEN."
|
||||
if [[ -z "${GITHUB_TOKEN}" ]]; then
|
||||
echo "Please set \$GITEA_TOKEN."
|
||||
exit 1
|
||||
fi
|
||||
GITEA_TOKEN=${GITHUB_TOKEN}
|
||||
|
|
Loading…
Reference in a new issue