Skip to content

Commit 511e8a0

Browse files
authored
Placed config as firt option - as cz expects
1 parent 151de13 commit 511e8a0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

entrypoint.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ echo "previous_version_minor=${PREV_REV_MINOR}" >>"$GITHUB_OUTPUT"
5151

5252

5353
CZ_CMD=('cz')
54+
55+
if [[ $INPUT_CONFIG ]]; then
56+
CZ_CMD+=("--config ${CONFIG}")
57+
fi
58+
5459
if [[ $INPUT_DEBUG == 'true' ]]; then
5560
CZ_CMD+=('--debug')
5661
fi
@@ -108,10 +113,6 @@ else
108113
ACTOR=$GITHUB_ACTOR
109114
fi
110115

111-
if [[ $INPUT_CONFIG ]]; then
112-
CZ_CMD+=("--config ${CONFIG}")
113-
fi
114-
115116
REV="$(cz version --project)"
116117
if [[ $REV == "$PREV_REV" ]]; then
117118
INPUT_PUSH='false'

0 commit comments

Comments
 (0)