File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ SPDX-FileCopyrightText: 2019-2025 Nextcloud GmbH and Nextcloud contributors
2+ SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only
Original file line number Diff line number Diff line change 2020GITHUB_TOKEN=$5
2121DAV_URL=https://nextcloud.kaminsky.me/remote.php/dav/files/$USER /android-artifacts/
2222
23- source scripts /lib.sh
23+ source .github/workflows /lib.sh
2424REPO=$( cat scripts/repo)
2525
2626if ! test -e app/build/outputs/apk/qa/debug/* qa-debug* .apk ; then
You canβt perform that action at this time.
0 commit comments