From ca5a78cf0bc8df3aa73210b41e4b42194ef81fa0 Mon Sep 17 00:00:00 2001 From: bootsie123 Date: Thu, 22 Oct 2020 16:26:28 -0400 Subject: [PATCH 1/2] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index eb91091..9c11f1f 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ Toolkit.run(async tools => { const patchWords = process.env['INPUT_PATCH-WORDING'].split(',') const preReleaseWords = process.env['INPUT_RC-WORDING'].split(',') - let version = 'patch' + let version = process.env['DEFAULT'] || 'patch' let foundWord = null; if (messages.some( From c38bf930ccb158392fbbd5b5f1d35da337adfa9e Mon Sep 17 00:00:00 2001 From: bootsie123 Date: Thu, 22 Oct 2020 16:29:43 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 61e69b8..2cc34c6 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,14 @@ Make sure you use the `actions/checkout@v2` action! skip-tag: 'true' ``` +**default:** Set a default version bump to use (optional - defaults to patch). Example: +```yaml +- name: 'Automated Version Bump' + uses: 'phips28/gh-action-bump-version@master' + with: + default: prerelease +``` + **wording:** Customize the messages that trigger the version bump. It must be a string, case sensitive, coma separated (optional). Example: ```yaml - name: 'Automated Version Bump'