Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Commit ad6ff4b

Browse files
committed
fix(publish): remove extra default from action to use PSR internal defaults instead
1 parent 923d4d3 commit ad6ff4b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

action.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,13 @@ cd "${INPUT_DIRECTORY}"
1818
# Make Token available as a correctly-named environment variables
1919
export 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[*]}"

action.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

3433
runs:
3534
using: "docker"

0 commit comments

Comments
 (0)