mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-30 00:47:29 +00:00
feat!: use "~> v2" as default (#463)
* feat!: use "~> v2" as default Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: more changes Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * gen Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * docs: update * docs: update --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5742e2a039
commit
18bbabc70c
+1
-1
@@ -15,7 +15,7 @@ export interface Inputs {
|
||||
export async function getInputs(): Promise<Inputs> {
|
||||
return {
|
||||
distribution: core.getInput('distribution') || 'goreleaser',
|
||||
version: core.getInput('version') || '~> v1',
|
||||
version: core.getInput('version') || '~> v2',
|
||||
args: core.getInput('args'),
|
||||
workdir: core.getInput('workdir') || '.',
|
||||
installOnly: core.getBooleanInput('install-only')
|
||||
|
||||
+2
-3
@@ -8,10 +8,9 @@ export interface GitHubRelease {
|
||||
}
|
||||
|
||||
export const getRelease = async (distribution: string, version: string): Promise<GitHubRelease> => {
|
||||
// TODO: change this to ~> v2 on a future major, once goreleaser v2 is out
|
||||
if (version === 'latest') {
|
||||
core.warning("You are using 'latest' as default version. Will lock to '~> v1'.");
|
||||
return getReleaseTag(distribution, '~> v1');
|
||||
core.warning("You are using 'latest' as default version. Will lock to '~> v2'.");
|
||||
return getReleaseTag(distribution, '~> v2');
|
||||
}
|
||||
return getReleaseTag(distribution, version);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user