File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,6 @@ export PATH="/usr/bin:${PATH}" # To find `id`
17
17
export PATH=" $( python -m site --user-base) /bin:${PATH} "
18
18
export PYTHONPATH=" $( python -m site --user-site) :${PYTHONPATH} "
19
19
20
- if [[ -z " ${INPUT_PASSWORD} " ]] ; then
21
- # No password supplied by the user implies that we're in the OIDC flow;
22
- # retrieve the OIDC credential and exchange it for a PyPI API token.
23
- echo " ::notice::in OIDC flow"
24
- INPUT_PASSWORD=$( python /app/oidc-exchange.py)
25
- fi
26
-
27
20
function get-normalized-input() {
28
21
local var_name=${1}
29
22
python -c \
@@ -46,6 +39,12 @@ INPUT_VERIFY_METADATA="$(get-normalized-input 'verify-metadata')"
46
39
INPUT_SKIP_EXISTING=" $( get-normalized-input ' skip-existing' ) "
47
40
INPUT_PRINT_HASH=" $( get-normalized-input ' print-hash' ) "
48
41
42
+ if [[ -z " ${INPUT_PASSWORD} " ]] ; then
43
+ # No password supplied by the user implies that we're in the OIDC flow;
44
+ # retrieve the OIDC credential and exchange it for a PyPI API token.
45
+ echo " ::notice::in OIDC flow"
46
+ INPUT_PASSWORD=$( python /app/oidc-exchange.py)
47
+ fi
49
48
50
49
if [[
51
50
" $INPUT_USER " == " __token__" &&
You can’t perform that action at this time.
0 commit comments