mctools / ncrystal

NCrystal : a library for thermal neutron transport in crystals and other materials
https://mctools.github.io/ncrystal/
Other
38 stars 17 forks source link

fix run-name bug when deploying to testpypi #135

Closed MilanKlausz closed 11 months ago

MilanKlausz commented 12 months ago

When manually triggering the workflow, there is an option to deploy to TestPyPI by selecting the testpypi environment, in which case the run-name should be 'Publish to TestPyPI', not 'Publish to PyPI'. Erroneously this is controlled by the old TEST input var, not the new ENVIRONMENT env var.

In addition to fixing this bug, this change includes adding the REF (tag/branch) input var in parentheses at the end of the run-name, in case of manual triggering. (For workflow runs triggered by push-tag events, the tag is indicated anyway.)