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 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; } 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