This repository was archived by the owner on Sep 28, 2024. It is now read-only.
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}"
18
18
# Make Token available as a correctly-named environment variables
19
19
export GH_TOKEN=" ${INPUT_GITHUB_TOKEN} "
20
20
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
+
21
29
# 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:
25
25
26
26
tag :
27
27
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
29
29
be published to. Defaults to 'latest', in which case the latest tag
30
30
will be identified by Python Semantic Release and used to publish to.
31
31
required : false
32
- default : " latest"
33
32
34
33
runs :
35
34
using : " docker"
You can’t perform that action at this time.
0 commit comments