Skip to content

Commit 80d76bc

Browse files
committed
simplify JOB_STATUS condition
avoids `||`-condition, which is harder to make cross-platform
1 parent 9b1a26f commit 80d76bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/conda-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ jobs:
209209
fi
210210
# we do not want to trigger artefact creation if the job is cancelled;
211211
# gate this on either explicit success or failure
212-
if [ $JOB_STATUS == "failure" || $JOB_STATUS == "success" ]; then
212+
if [ $JOB_STATUS != "cancelled" ]; then
213213
if [ $OS == "windows" ]; then
214214
cmd.exe /c .scripts\\create_conda_build_artifacts.bat
215215
else

0 commit comments

Comments
 (0)