Skip to content

Commit 151de13

Browse files
authored
Merge pull request #1 from karolyczovek/kczovek/support-config-file-in-gha
Add config option to action.yml
2 parents 2e8226b + dd4c0b4 commit 151de13

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,6 @@ inputs:
122122
manual_version:
123123
description: "Manually specify the version to bump to"
124124
required: false
125+
config:
126+
description: "Manually specify the config file to use"
127+
required: false

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ else
108108
ACTOR=$GITHUB_ACTOR
109109
fi
110110

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

0 commit comments

Comments
 (0)