diff --git a/action.yml b/action.yml index 7d874a3..59c8979 100644 --- a/action.yml +++ b/action.yml @@ -50,6 +50,10 @@ inputs: description: 'Set a custom commit message for version bump commit' default: '' required: false + push: + description: 'Set to false to skip pushing the new tag' + default: 'true' + required: false outputs: newTag: description: 'The newly created tag' diff --git a/index.js b/index.js index 5ad32ff..5427b4e 100644 --- a/index.js +++ b/index.js @@ -105,6 +105,11 @@ Toolkit.run(async (tools) => { return; } + // case: if user sets push == false + if ( process.env['INPUT_PUSH'] === "false" ) { + return; + } + // GIT logic try { const current = pkg.version.toString();