Compare commits

..
1 Commits
Author SHA1 Message Date
Carlos Alexandro BeckerandGitHub 79d4afbba1 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>
2022-01-14 17:50:06 +01:00
2 changed files with 4 additions and 4 deletions
Generated Vendored
+1 -1
View File
@@ -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) {
if (!args.includes('--snapshot') && !args.includes('--nightly')) {
core.info(`No tag found for commit ${commit}. Snapshot forced`); core.info(`No tag found for commit ${commit}. Snapshot forced`);
if (!args.includes('--snapshot')) {
snapshot = ' --snapshot'; snapshot = ' --snapshot';
} }
} }
+1 -1
View File
@@ -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) {
if (!args.includes('--snapshot') && !args.includes('--nightly')) {
core.info(`No tag found for commit ${commit}. Snapshot forced`); core.info(`No tag found for commit ${commit}. Snapshot forced`);
if (!args.includes('--snapshot')) {
snapshot = ' --snapshot'; snapshot = ' --snapshot';
} }
} else { } else {