Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit ff160a4

Browse files
committed
work around azure missing variable quirk
1 parent cbf4af4 commit ff160a4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

azure/posix.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ jobs:
9797
ANACONDA_ORG="multibuild-wheels-staging"
9898
TOKEN="$MAPPED_NUMPY_STAGING_UPLOAD_TOKEN"
9999
fi
100-
if [ "$TOKEN" == "" ]; then
100+
if [ "$TOKEN" == "" -o "${TOKEN:0:7}" == "$(NUMPY" ]; then
101101
echo "##[warning] Could not find anaconda.org upload token in secret variables"
102+
TOKEN=""
102103
fi
103104
echo "##vso[task.setvariable variable=TOKEN]$TOKEN"
104105
echo "##vso[task.setvariable variable=ANACONDA_ORG]$ANACONDA_ORG"

azure/windows.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,10 @@ jobs:
125125
ANACONDA_ORG="multibuild-wheels-staging"
126126
TOKEN="$MAPPED_NUMPY_STAGING_UPLOAD_TOKEN"
127127
fi
128-
if [ "$TOKEN" == "" ]; then
128+
129+
if [ "$TOKEN" == "" -o "${TOKEN:0:7}" == "$(NUMPY" ]; then
129130
echo "##[warning] Could not find anaconda.org upload token in secret variables"
131+
TOKEN=""
130132
fi
131133
echo "##vso[task.setvariable variable=TOKEN]$TOKEN"
132134
echo "##vso[task.setvariable variable=ANACONDA_ORG]$ANACONDA_ORG"

0 commit comments

Comments
 (0)