From 6ab7206d8d812061f076bbe8bd9423c7ad3bf07a Mon Sep 17 00:00:00 2001 From: Andrew McCloud Date: Tue, 25 Jan 2022 22:39:02 -0800 Subject: [PATCH 1/3] Update test to use null default --- tests/end-to-end/config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/end-to-end/config.yaml b/tests/end-to-end/config.yaml index 0ecb15e..afd901e 100644 --- a/tests/end-to-end/config.yaml +++ b/tests/end-to-end/config.yaml @@ -101,12 +101,12 @@ suites: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - default: minor + default: null patch-wording: patch tests: - message: no hint expected: - version: 4.1.0 + version: 4.0.1-pre.0 - message: patch expected: version: 4.1.1 From 7802acf3bf002f50315096be134e0726075275d2 Mon Sep 17 00:00:00 2001 From: Andrew McCloud Date: Tue, 25 Jan 2022 22:45:43 -0800 Subject: [PATCH 2/3] Rename pull-request.disabled_yml to pull-request.yml --- .github/workflows/{pull-request.disabled_yml => pull-request.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{pull-request.disabled_yml => pull-request.yml} (100%) diff --git a/.github/workflows/pull-request.disabled_yml b/.github/workflows/pull-request.yml similarity index 100% rename from .github/workflows/pull-request.disabled_yml rename to .github/workflows/pull-request.yml From 593e96b5164057b5ce77bd8fd5b933216f5b1d77 Mon Sep 17 00:00:00 2001 From: Andrew McCloud Date: Thu, 27 Jan 2022 08:01:25 -0800 Subject: [PATCH 3/3] Do not check for unsupported null value Yaml does not support null --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d45da8e..8f122ab 100644 --- a/index.js +++ b/index.js @@ -118,7 +118,7 @@ const workspace = process.env.GITHUB_WORKSPACE; console.log('version action after final decision:', version); // case: if nothing of the above matches - if (version === null) { + if (!version) { exitSuccess('No version keywords found, skipping bump.'); return; }