File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,13 @@ cd "${INPUT_DIRECTORY}"
1818# Make Token available as a correctly-named environment variables
1919export GH_TOKEN=" ${INPUT_GITHUB_TOKEN} "
2020
21+ # Bash array to store publish arguments
22+ PUBLISH_ARGS=()
23+
24+ # Add publish arguments as necessary
25+ if [ -n " ${INPUT_TAG} " ]; then
26+ PUBLISH_ARGS+=(" --tag ${INPUT_TAG} " )
27+ fi
28+
2129# Run Semantic Release
22- explicit_run_cmd " $PSR_VENV_BIN /semantic-release ${INPUT_ROOT_OPTIONS} publish --tag ${INPUT_TAG }"
30+ explicit_run_cmd " $PSR_VENV_BIN /semantic-release ${INPUT_ROOT_OPTIONS} publish ${PUBLISH_ARGS[*] }"
Original file line number Diff line number Diff line change @@ -25,11 +25,10 @@ inputs:
2525
2626 tag :
2727 description : |
28- The tag corresponding to the GitHub Release that the artefacts should
28+ The tag corresponding to the GitHub Release that the artifacts should
2929 be published to. Defaults to 'latest', in which case the latest tag
3030 will be identified by Python Semantic Release and used to publish to.
3131 required : false
32- default : " latest"
3332
3433runs :
3534 using : " docker"
You can’t perform that action at this time.
0 commit comments