fix: should not force snapshot when nightly is set (#321)
* fix: should not force snapshot when nightly is set Signed-off-by: Carlos A Becker <caarlos0@gmail.com> * fix: build Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
parent
5df302e5e9
commit
79d4afbba1
|
@ -346,8 +346,8 @@ function run() {
|
||||||
let snapshot = '';
|
let snapshot = '';
|
||||||
if (args.split(' ').indexOf('release') > -1) {
|
if (args.split(' ').indexOf('release') > -1) {
|
||||||
if (isTagDirty) {
|
if (isTagDirty) {
|
||||||
core.info(`No tag found for commit ${commit}. Snapshot forced`);
|
if (!args.includes('--snapshot') && !args.includes('--nightly')) {
|
||||||
if (!args.includes('--snapshot')) {
|
core.info(`No tag found for commit ${commit}. Snapshot forced`);
|
||||||
snapshot = ' --snapshot';
|
snapshot = ' --snapshot';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,8 +36,8 @@ async function run(): Promise<void> {
|
||||||
let snapshot = '';
|
let snapshot = '';
|
||||||
if (args.split(' ').indexOf('release') > -1) {
|
if (args.split(' ').indexOf('release') > -1) {
|
||||||
if (isTagDirty) {
|
if (isTagDirty) {
|
||||||
core.info(`No tag found for commit ${commit}. Snapshot forced`);
|
if (!args.includes('--snapshot') && !args.includes('--nightly')) {
|
||||||
if (!args.includes('--snapshot')) {
|
core.info(`No tag found for commit ${commit}. Snapshot forced`);
|
||||||
snapshot = ' --snapshot';
|
snapshot = ' --snapshot';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue