Check if already included
This commit is contained in:
parent
c71e1672a2
commit
8c5f3a80d4
|
@ -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`);
|
||||
|
|
|
@ -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`);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue