Do not overwrite GORELEASER_CURRENT_TAG if already declared (#260)

This commit is contained in:
CrazyMax
2020-12-02 16:50:57 +01:00
parent c1dfc73b78
commit 56f5b77f7f
3 changed files with 10 additions and 2 deletions
Generated Vendored
+3 -1
View File
@@ -378,7 +378,9 @@ function run() {
}
}
core.info('🏃 Running GoReleaser...');
process.env.GORELEASER_CURRENT_TAG = tag;
if (!('GORELEASER_CURRENT_TAG' in process.env)) {
process.env.GORELEASER_CURRENT_TAG = tag;
}
yield exec.exec(`${goreleaser} ${args}${snapshot}`);
}
catch (error) {