Skip to content

Commit 4f8f3ad

Browse files
committed
Rename Input and add output
1 parent 11a6e5f commit 4f8f3ad

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ The following is an extended example with all available options.
5858
```yaml
5959
- uses: stefanzweifel/git-auto-commit-action@v5
6060
with:
61-
# Perform a clean git tag and push, without commiting anything
62-
# Default to false
63-
git_tag_only: false
64-
6561
# Optional. Commit message for the created commit.
6662
# Defaults to "Apply automatic changes"
6763
commit_message: Automated Change
@@ -122,6 +118,10 @@ The following is an extended example with all available options.
122118

123119
# Optional. Create given branch name in local and remote repository.
124120
create_branch: true
121+
122+
# Perform a clean git tag and push, without commiting anything
123+
# Default to false
124+
create_git_tag_only: false
125125
```
126126
127127
Please note that the Action depends on `bash`. If you're using the Action in a job in combination with a custom Docker container, make sure that `bash` is installed.

action.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ description: 'Automatically commits files which have been changed during the wor
44
author: Stefan Zweifel <stefan@stefanzweifel.dev>
55

66
inputs:
7-
git_tag_only:
8-
description: Perform a clean git tag and push, without commiting anything
9-
required: false
10-
default: false
117
commit_message:
128
description: Commit message
139
required: false
@@ -74,6 +70,10 @@ inputs:
7470
create_branch:
7571
description: Create new branch with the name of `branch`-input in local and remote repository, if it doesn't exist yet.
7672
default: false
73+
create_git_tag_only:
74+
description: Perform a clean git tag and push, without commiting anything
75+
required: false
76+
default: false
7777
internal_git_binary:
7878
description: Internal use only! Path to git binary used to check if git is available. (Don't change this!)
7979
default: git
@@ -83,6 +83,8 @@ outputs:
8383
description: Value is "true", if the repository was dirty and file changes have been detected. Value is "false", if no changes have been detected.
8484
commit_hash:
8585
description: Full hash of the created commit. Only present if the "changes_detected" output is "true".
86+
create_git_tag_only:
87+
description:
8688

8789
runs:
8890
using: 'node20'

entrypoint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ _main() {
3030
_check_if_git_is_available
3131

3232
_switch_to_repository
33-
if "$INPUT_GIT_TAG_ONLY"; then
34-
_log "debug" "git tag only.";
35-
_set_github_output "git_tag_only" "true"
33+
if "$INPUT_CREATE_GIT_TAG_ONLY"; then
34+
_log "debug" "Create git tag only";
35+
_set_github_output "create_git_tag_only" "true"
3636
_tag_commit
3737
_push_to_github
3838
elif _git_is_dirty || "$INPUT_SKIP_DIRTY_CHECK"; then

0 commit comments

Comments
 (0)