mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 21:15:30 +03:00
c2683e0ed0
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
27 lines
559 B
Bash
Executable file
27 lines
559 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
## This file is intended to be sourced by other scripts
|
|
|
|
|
|
function err() {
|
|
echo >&2 "$@"
|
|
}
|
|
|
|
|
|
function curl_gh() {
|
|
if [[ -n "$GITHUB_TOKEN" ]]
|
|
then
|
|
curl \
|
|
--silent \
|
|
--header "Authorization: token $GITHUB_TOKEN" \
|
|
"$@"
|
|
else
|
|
err "WARNING: No GITHUB_TOKEN found. Skipping API call"
|
|
fi
|
|
|
|
}
|