diff --git a/dist/index.js b/dist/index.js index 1a8a3567..5280f820 100644 --- a/dist/index.js +++ b/dist/index.js @@ -346,8 +346,8 @@ function run() { let snapshot = ''; if (args.split(' ').indexOf('release') > -1) { if (isTagDirty) { - core.info(`No tag found for commit ${commit}. Snapshot forced`); - if (!args.includes('--snapshot')) { + if (!args.includes('--snapshot') && !args.includes('--nightly')) { + core.info(`No tag found for commit ${commit}. Snapshot forced`); snapshot = ' --snapshot'; } } diff --git a/src/main.ts b/src/main.ts index 02923b12..e3a4f4b9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,8 +36,8 @@ async function run(): Promise { let snapshot = ''; if (args.split(' ').indexOf('release') > -1) { if (isTagDirty) { - core.info(`No tag found for commit ${commit}. Snapshot forced`); - if (!args.includes('--snapshot')) { + if (!args.includes('--snapshot') && !args.includes('--nightly')) { + core.info(`No tag found for commit ${commit}. Snapshot forced`); snapshot = ' --snapshot'; } } else {