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.)
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.)