ci: prefer github token for release asset upload
This commit is contained in:
@@ -165,7 +165,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
token="${GITEA_TOKEN:-${GITHUB_TOKEN:-}}"
|
token="${GITHUB_TOKEN:-${GITEA_TOKEN:-}}"
|
||||||
if [ -z "$token" ]; then
|
if [ -z "$token" ]; then
|
||||||
echo "::error::No release upload token is available from secrets.GITEA_TOKEN or github.token"
|
echo "::error::No release upload token is available from secrets.GITEA_TOKEN or github.token"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user