@@ -25,16 +25,16 @@ jobs:
2525 permissions :
2626 contents : read
2727 outputs :
28- tag : ${{ steps.outputs. get_version.tag }}
29- tag_message : ${{ steps.outputs. get_version.tag_message }}
28+ tag : ${{ steps.get_version.outputs .tag }}
29+ tag_message : ${{ steps.get_version.outputs .tag_message }}
3030
3131 # The variables used for publishing the data
32- publish_run_job : ${{ (github.repository == 'Spacetown /logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.outputs. get_version.tag != '') || inputs.do_test_release }}
33- publish_environment_name : ${{ (((steps.outputs. get_version.tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}
34- publish_environment_url : https://${{ (((steps.outputs. get_version.tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}.org/p/logging-pipeline
35- publish_push_tag : ${{ (github.repository == 'Spacetown /logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.outputs. get_version.tag != '') }}
32+ publish_run_job : ${{ (github.repository == 'spacetown /logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.get_version.outputs .tag != '') || inputs.do_test_release }}
33+ publish_environment_name : ${{ (((steps.get_version.outputs .tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}
34+ publish_environment_url : https://${{ (((steps.get_version.outputs .tag == '') || inputs.do_test_release) && 'test.pypi') || 'pypi' }}.org/p/logging-pipeline
35+ publish_push_tag : ${{ (github.repository == 'spacetown /logging_pipeline') && (github.event.ref == 'refs/heads/main') && (steps.get_version.outputs .tag != '') }}
3636 # Use https://upload.pypi.org/legacy for a tag in pypi environment or in all other cases https://test.pypi.org/legacy
37- publish_repository_url : https://${{ (((steps.outputs. get_version.tag == '') || inputs.do_test_release) && 'test.pypi') || 'upload.pypi' }}.org/legacy/
37+ publish_repository_url : https://${{ (((steps.get_version.outputs .tag == '') || inputs.do_test_release) && 'test.pypi') || 'upload.pypi' }}.org/legacy/
3838 timeout-minutes : 10
3939
4040 steps :
6060 FirstHeading="$(sed -n '/^## / { s/^## //; p; }' CHANGELOG.md | head -n 1)"
6161 tag="$(echo "$FirstHeading" | sed -n '/^[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/ p')"
6262 if [[ ! -z "$tag" ]] ; then
63+ echo "New tag is $tag"
6364 echo "tag=$tag" >> $GITHUB_OUTPUT
64- echo "tag_message=$tag_message ($(date -I))" >> $GITHUB_OUTPUT
65+ echo "tag_message=$tag ($(date -I))" >> $GITHUB_OUTPUT
66+ else
67+ echo "Development version without a new tag"
6568 fi
6669
6770 - name : Install spellchecker
@@ -258,7 +261,7 @@ jobs:
258261 body_path : RELEASE_NOTES.md
259262
260263 - name : Publish distribution 📦 to ${{ ((needs.pre-checks.outputs.tag == '') && 'test.pypi') || 'pypi' }}.org
261- if : ${{ (needs.pre-checks.outputs.publish_push_tag == 'true') || ((github.repository == 'Spacetown /logging_pipeline') && inputs.do_test_release) }}
264+ if : ${{ (needs.pre-checks.outputs.publish_push_tag == 'true') || ((github.repository == 'spacetown /logging_pipeline') && inputs.do_test_release) }}
262265 uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc
263266 with :
264267 repository-url : ${{ needs.pre-checks.outputs.publish_repository_url }}
0 commit comments