mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-29 22:37:30 +00:00
Check if already included
This commit is contained in:
+3
-1
@@ -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`);
|
||||
|
||||
+3
-1
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user