mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-07-09 23:37:30 +00:00
Check if already included
This commit is contained in:
@@ -28,8 +28,10 @@ function run() {
|
|||||||
let snapshot = '';
|
let snapshot = '';
|
||||||
if (!process.env.GITHUB_REF.startsWith('refs/tags/')) {
|
if (!process.env.GITHUB_REF.startsWith('refs/tags/')) {
|
||||||
console.log(`⚠️ No tag found. Snapshot forced`);
|
console.log(`⚠️ No tag found. Snapshot forced`);
|
||||||
|
if (!args.includes('--snapshot')) {
|
||||||
snapshot = ' --snapshot';
|
snapshot = ' --snapshot';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
console.log(`✅ ${process.env.GITHUB_REF.split('/')[2]}} tag found`);
|
console.log(`✅ ${process.env.GITHUB_REF.split('/')[2]}} tag found`);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ async function run() {
|
|||||||
let snapshot = '';
|
let snapshot = '';
|
||||||
if (!process.env.GITHUB_REF!.startsWith('refs/tags/')) {
|
if (!process.env.GITHUB_REF!.startsWith('refs/tags/')) {
|
||||||
console.log(`⚠️ No tag found. Snapshot forced`);
|
console.log(`⚠️ No tag found. Snapshot forced`);
|
||||||
|
if (!args.includes('--snapshot')) {
|
||||||
snapshot = ' --snapshot';
|
snapshot = ' --snapshot';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(`✅ ${process.env.GITHUB_REF!.split('/')[2]}} tag found`);
|
console.log(`✅ ${process.env.GITHUB_REF!.split('/')[2]}} tag found`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user