mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-30 00:07:29 +00:00
fix: Set GORELEASER_CURRENT_TAG (#259)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
+1
@@ -378,6 +378,7 @@ function run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
core.info('🏃 Running GoReleaser...');
|
core.info('🏃 Running GoReleaser...');
|
||||||
|
process.env.GORELEASER_CURRENT_TAG = tag;
|
||||||
yield exec.exec(`${goreleaser} ${args}${snapshot}`);
|
yield exec.exec(`${goreleaser} ${args}${snapshot}`);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ async function run(): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
core.info('🏃 Running GoReleaser...');
|
core.info('🏃 Running GoReleaser...');
|
||||||
|
process.env.GORELEASER_CURRENT_TAG = tag;
|
||||||
await exec.exec(`${goreleaser} ${args}${snapshot}`);
|
await exec.exec(`${goreleaser} ${args}${snapshot}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user