File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 6767| Name | Description | Default |
6868| ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
6969| ` 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 |
7071| `dry_run` | Run without creating commit, output to stdout | false |
7172| `repository` | Repository name to push. Default or empty value represents current github repository | current one |
7273| `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:
1010 version :
1111 description : ' New version'
1212inputs :
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
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ echo "${PIP_CMD[@]}"
3434" ${PIP_CMD[@]} "
3535echo " Commitizen version: $( cz version) "
3636
37+ if [[ $INPUT_WORKING_DIRECTORY ]]; then
38+ cd $INPUT_WORKING_DIRECTORY
39+ fi
40+
3741PREV_REV=" $( cz version --project) "
3842echo " PREVIOUS_REVISION=${PREV_REV} " >> " $GITHUB_ENV "
3943
You can’t perform that action at this time.
0 commit comments