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