make pushing optional
This commit is contained in:
parent
b388649135
commit
c9f74f6081
|
@ -50,6 +50,10 @@ inputs:
|
||||||
description: 'Set a custom commit message for version bump commit'
|
description: 'Set a custom commit message for version bump commit'
|
||||||
default: ''
|
default: ''
|
||||||
required: false
|
required: false
|
||||||
|
push:
|
||||||
|
description: 'Set to false to skip pushing the new tag'
|
||||||
|
default: 'true'
|
||||||
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
newTag:
|
newTag:
|
||||||
description: 'The newly created tag'
|
description: 'The newly created tag'
|
||||||
|
|
5
index.js
5
index.js
|
@ -105,6 +105,11 @@ Toolkit.run(async (tools) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// case: if user sets push == false
|
||||||
|
if ( process.env['INPUT_PUSH'] === "false" ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// GIT logic
|
// GIT logic
|
||||||
try {
|
try {
|
||||||
const current = pkg.version.toString();
|
const current = pkg.version.toString();
|
||||||
|
|
Loading…
Reference in New Issue