We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48259af commit e463812Copy full SHA for e463812
twine-upload.sh
@@ -1,6 +1,22 @@
1
#! /usr/bin/env bash
2
set -Eeuo pipefail
3
4
+
5
+if [[
6
+ "$INPUT_USER" == "__token__" &&
7
+ ! "$INPUT_PASSWORD" =~ ^pypi-
8
+ ]]
9
+then
10
+ >&2 echo \
11
+ [WARNING]: \
12
+ It looks like you are trying to use an API token to \
13
+ authenticate in the package index and your token value does \
14
+ not start with '"pypi-"' as it typically should. This may \
15
+ cause an authentication error. Please verify that you have \
16
+ copied your token properly if such an error occurs.
17
+fi
18
19
20
TWINE_USERNAME="$INPUT_USER" \
21
TWINE_PASSWORD="$INPUT_PASSWORD" \
22
TWINE_REPOSITORY_URL="$INPUT_REPOSITORY_URL" \
0 commit comments