Check if already included

This commit is contained in:
CrazyMax 2019-09-20 23:11:26 +02:00
parent c71e1672a2
commit 8c5f3a80d4
2 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,9 @@ function run() {
let snapshot = '';
if (!process.env.GITHUB_REF.startsWith('refs/tags/')) {
console.log(`⚠️ No tag found. Snapshot forced`);
snapshot = ' --snapshot';
if (!args.includes('--snapshot')) {
snapshot = ' --snapshot';
}
}
else {
console.log(`${process.env.GITHUB_REF.split('/')[2]}} tag found`);

View File

@ -11,7 +11,9 @@ async function run() {
let snapshot = '';
if (!process.env.GITHUB_REF!.startsWith('refs/tags/')) {
console.log(`⚠️ No tag found. Snapshot forced`);
snapshot = ' --snapshot';
if (!args.includes('--snapshot')) {
snapshot = ' --snapshot';
}
} else {
console.log(`${process.env.GITHUB_REF!.split('/')[2]}} tag found`);
}