Skip to content

Commit 7435c66

Browse files
committed
feat: add working-directory input
1 parent 1f11eb2 commit 7435c66

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

action.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ outputs:
1010
version:
1111
description: 'New version'
1212
inputs:
13+
working_directory:
14+
description: 'Change to this directory before running'
15+
required: false
1316
dry_run:
1417
description: 'Run without creating commit, output to stdout'
1518
required: false

entrypoint.sh

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ echo "${PIP_CMD[@]}"
3434
"${PIP_CMD[@]}"
3535
echo "Commitizen version: $(cz version)"
3636

37+
if [[ $INPUT_WORKING_DIRECTORY ]]; then
38+
cd $INPUT_WORKING_DIRECTORY
39+
fi
40+
3741
PREV_REV="$(cz version --project)"
3842
echo "PREVIOUS_REVISION=${PREV_REV}" >>"$GITHUB_ENV"
3943

0 commit comments

Comments
 (0)