allow env var overwrite
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2023-08-17 10:53:11 +02:00
parent a17f171015
commit 09a88c17ea
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 7 additions and 6 deletions

View File

@ -5,9 +5,10 @@
set -eo pipefail
me=$(basename "$0")
dist="dist/${me%.*}"
GH_REPO_ORGS="example"
GH_REPO_DIST="dist/${me%.*}"
GH_REPO_ORGS="${GH_REPO_ORGS:-example}"
GH_REPO_DIST="${GH_REPO_DIST:-$dist}"
mkdir -p "${GH_REPO_DIST}"

8
shell/gitea-batchmerge.sh Normal file → Executable file
View File

@ -4,10 +4,10 @@
set -eo pipefail
GITEA_SERVER=https://gitea.example.com
GITEA_TOKEN=my-private-token
GITEA_USER="gitea"
GITEA_PR_TITLE=
GITEA_SERVER="${GITEA_SERVER:-https://gitea.example.com}"
GITEA_TOKEN="${GITEA_TOKEN:-my-private-token}"
GITEA_USER="${GITEA_USER:-gitea}"
GITEA_PR_TITLE="${GITEA_PR_TITLE:-}"
http "${GITEA_SERVER}/api/v1/user" 'Authorization:token '"${GITEA_TOKEN}"''