mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-14 14:50:32 +00:00
Do not overwrite GORELEASER_CURRENT_TAG if already declared (#260)
This commit is contained in:
parent
c1dfc73b78
commit
56f5b77f7f
3 changed files with 10 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue