Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 7435c66

Browse files
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‎

Lines changed: 3 additions & 0 deletions
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‎

Lines changed: 4 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /