allow env var overwrite
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a17f171015
commit
09a88c17ea
@ -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
8
shell/gitea-batchmerge.sh
Normal file → Executable 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}"''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user