Fix tsc gen

This commit is contained in:
CrazyMax 2019-11-14 23:06:12 +01:00
parent 8161c37568
commit 7f7463cf16
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 1 additions and 2 deletions

View File

@ -28,8 +28,7 @@ function run(silent) {
const key = core.getInput('key');
const goreleaser = yield installer.getGoReleaser(version);
let snapshot = '';
if (!process.env.GITHUB_REF ||
!process.env.GITHUB_REF.startsWith('refs/tags/')) {
if (!process.env.GITHUB_REF || !process.env.GITHUB_REF.startsWith('refs/tags/')) {
console.log(`⚠️ No tag found. Snapshot forced`);
if (!args.includes('--snapshot')) {
snapshot = ' --snapshot';