File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 67
67
| Name | Description | Default |
68
68
| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
69
69
| ` github_token` | Token for the repo. Can be passed in using `${{ secrets.GITHUB_TOKEN }}`. Required if `push: true` | - |
70
+ | `working_directory` | Change to this directory before running | repo root directory |
70
71
| `dry_run` | Run without creating commit, output to stdout | false |
71
72
| `repository` | Repository name to push. Default or empty value represents current github repository | current one |
72
73
| `branch` | Destination branch to push changes | Same as the one executing the action by default |
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ outputs:
10
10
version :
11
11
description : ' New version'
12
12
inputs :
13
+ working_directory :
14
+ description : ' Change to this directory before running'
15
+ required : false
13
16
dry_run :
14
17
description : ' Run without creating commit, output to stdout'
15
18
required : false
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ echo "${PIP_CMD[@]}"
34
34
" ${PIP_CMD[@]} "
35
35
echo " Commitizen version: $( cz version) "
36
36
37
+ if [[ $INPUT_WORKING_DIRECTORY ]]; then
38
+ cd $INPUT_WORKING_DIRECTORY
39
+ fi
40
+
37
41
PREV_REV=" $( cz version --project) "
38
42
echo " PREVIOUS_REVISION=${PREV_REV} " >> " $GITHUB_ENV "
39
43
You can’t perform that action at this time.
0 commit comments