Skip to content

Commit

Permalink
Do not overwrite GORELEASER_CURRENT_TAG if already declared (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Dec 2, 2020
1 parent c1dfc73 commit 56f5b77
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## 2.4.1 (2020/12/02)

* Do not overwrite GORELEASER_CURRENT_TAG if already declared (#260)

## 2.4.0 (2020/11/30)

* Set GORELEASER_CURRENT_TAG (#259)
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/main.ts
Expand Up @@ -44,7 +44,9 @@ async function run(): Promise<void> {
}

core.info('🏃 Running GoReleaser...');
process.env.GORELEASER_CURRENT_TAG = tag;
if (!('GORELEASER_CURRENT_TAG' in process.env)) {
process.env.GORELEASER_CURRENT_TAG = tag;
}
await exec.exec(`${goreleaser} ${args}${snapshot}`);
} catch (error) {
core.setFailed(error.message);
Expand Down

0 comments on commit 56f5b77

Please sign in to comment.