Skip to content

BUILD: remove condition on upload step #21035

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 13, 2022
Merged

BUILD: remove condition on upload step #21035

merged 2 commits into from
Feb 13, 2022

Conversation

mattip
Copy link
Member

@mattip mattip commented Feb 11, 2022

The condition for the "Upload wheels" step is not working, see this scheduled build which should have uploaded (the "Set Upload Variables" step prints "scheduled or dispatched event", so the environment variables are set).

Removing the condition will allow the step to silently skip since there is a check that $TOKEN is set.

@mattip mattip added the 36 - Build Build related PR label Feb 11, 2022
@@ -152,7 +152,7 @@ jobs:
echo "ANACONDA_UPLOAD=false" >> $GITHUB_ENV
fi
- name: Upload wheels
if: ${{ env.TOKEN }}
# if: ${{ env.TOKEN }} # doesn't work
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make more sense to just fuse the two steps Setup Upload Variables and Upload Wheels together?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good idea

@mattip
Copy link
Member Author

mattip commented Feb 13, 2022

self-merging

@mattip mattip merged commit 358cce3 into numpy:main Feb 13, 2022
@mattip mattip deleted the token branch December 27, 2022 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
36 - Build Build related PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants