Skip to content

Commit 1570ad1

Browse files
πŸ”„ synced local '.github/workflows/' with remote 'config/workflows/'
Signed-off-by: nextcloud-android-bot <android@nextcloud.com>
1 parent 7b4296b commit 1570ad1

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

β€Ž.github/workflows/lib.shβ€Ž

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
#
3+
# SPDX-FileCopyrightText: 2022-2024 Nextcloud GmbH and Nextcloud contributors
4+
# SPDX-FileCopyrightText: 2022 Álvaro Brey <alvaro@alvarobrey.com>
5+
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
6+
#
7+
8+
## This file is intended to be sourced by other scripts
9+
10+
11+
function err() {
12+
echo >&2 "$@"
13+
}
14+
15+
16+
function curl_gh() {
17+
if [[ -n "$GITHUB_TOKEN" ]]
18+
then
19+
curl \
20+
--silent \
21+
--header "Authorization: token $GITHUB_TOKEN" \
22+
"$@"
23+
else
24+
err "WARNING: No GITHUB_TOKEN found. Skipping API call"
25+
fi
26+
27+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SPDX-FileCopyrightText: 2019-2025 Nextcloud GmbH and Nextcloud contributors
2+
SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only

β€Ž.github/workflows/uploadArtifact.shβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ PR=$4
2020
GITHUB_TOKEN=$5
2121
DAV_URL=https://nextcloud.kaminsky.me/remote.php/dav/files/$USER/android-artifacts/
2222

23-
source scripts/lib.sh
23+
source .github/workflows/lib.sh
2424
REPO=$(cat scripts/repo)
2525

2626
if ! test -e app/build/outputs/apk/qa/debug/*qa-debug*.apk ; then

0 commit comments

Comments
Β (0)