Skip to content

Commit

Permalink
fix(publish): remove extra default from action to use PSR internal de…
Browse files Browse the repository at this point in the history
…faults instead
  • Loading branch information
codejedi365 committed Jun 5, 2024
1 parent 923d4d3 commit ad6ff4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 9 additions & 1 deletion action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,13 @@ cd "${INPUT_DIRECTORY}"
# Make Token available as a correctly-named environment variables
export GH_TOKEN="${INPUT_GITHUB_TOKEN}"

# Bash array to store publish arguments
PUBLISH_ARGS=()

# Add publish arguments as necessary
if [ -n "${INPUT_TAG}" ]; then
PUBLISH_ARGS+=("--tag ${INPUT_TAG}")
fi

# Run Semantic Release
explicit_run_cmd "$PSR_VENV_BIN/semantic-release ${INPUT_ROOT_OPTIONS} publish --tag ${INPUT_TAG}"
explicit_run_cmd "$PSR_VENV_BIN/semantic-release ${INPUT_ROOT_OPTIONS} publish ${PUBLISH_ARGS[*]}"
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ inputs:

tag:
description: |
The tag corresponding to the GitHub Release that the artefacts should
The tag corresponding to the GitHub Release that the artifacts should
be published to. Defaults to 'latest', in which case the latest tag
will be identified by Python Semantic Release and used to publish to.
required: false
default: "latest"

runs:
using: "docker"
Expand Down

0 comments on commit ad6ff4b

Please sign in to comment.