From fc18df141785036954480bc8cd480697c262749f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9a=20Maugars?= Date: Sun, 11 Oct 2020 14:45:47 +0200 Subject: [PATCH 1/2] Make commit_message optional --- README.md | 2 +- action.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bea495fd..3d809266 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Add the following step at the end of your job, after other steps that might add ```yaml - uses: stefanzweifel/git-auto-commit-action@v4 with: - # Required + # Optional but recommended, defaults to "Apply automatic changes" commit_message: Apply automatic changes # Optional branch to push to, defaults to the current branch diff --git a/action.yml b/action.yml index 473689ce..884b1f90 100644 --- a/action.yml +++ b/action.yml @@ -6,7 +6,7 @@ author: Stefan Zweifel inputs: commit_message: description: Commit message - required: true + default: Apply automatic changes branch: description: Git branch name, where changes should be pushed too. Required if Action is used on the `pull_request` event required: false From a204abce1607962ee97d03bd289671261437ee81 Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Sun, 11 Oct 2020 20:14:15 +0200 Subject: [PATCH 2/2] Update action.yml --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 884b1f90..a4a86300 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,7 @@ author: Stefan Zweifel inputs: commit_message: description: Commit message + required: false default: Apply automatic changes branch: description: Git branch name, where changes should be pushed too. Required if Action is used on the `pull_request` event