Skip to content

Commit

Permalink
Maybe it works now
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Feb 11, 2025
1 parent 154055d commit 89bc43d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,19 @@ jobs:
- name: Set env
run: |
if [ ${{ github.event.inputs.build_type }} == 'nightly' ]
BUILD_TYPE="${{ github.event.inputs.build_type }}"
UPLOAD="${{ github.event.inputs.upload }}"
# if they're empty, it means its not a workflow_dispatch, so we set a default
BUILD_TYPE="${BUILD_TYPE:-nightly}"
UPLOAD="${UPLOAD:-false}"
if [ "${BUILD_TYPE}" = 'nightly' ]
then
echo "NRN_RELEASE_UPLOAD=false" >> $GITHUB_ENV
echo NRN_NIGHTLY_UPLOAD=${{ github.event.inputs.upload }} >> $GITHUB_ENV
echo "NEURON_NIGHTLY_UPLOAD=${UPLOAD}" >> $GITHUB_ENV
echo "NEURON_NIGHTLY_TAG=-nightly" >> $GITHUB_ENV
else
echo "NEURON_RELEASE_UPLOAD=${UPLOAD}" >> $GITHUB_ENV
echo "NRN_NIGHTLY_UPLOAD=false" >> $GITHUB_ENV
echo NRN_RELEASE_UPLOAD=${{ github.event.inputs.upload }} >> $GITHUB_ENV
echo "NEURON_NIGHTLY_TAG=" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 89bc43d

Please sign in to comment.