fix: use new static URL

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker
2026-03-22 23:41:46 -03:00
parent 07f3f34e99
commit 9881cc5376
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ describe('getRelease', () => {
it('unknown GoReleaser release', async () => { it('unknown GoReleaser release', async () => {
await expect(github.getRelease('goreleaser', 'foo')).rejects.toThrow( await expect(github.getRelease('goreleaser', 'foo')).rejects.toThrow(
new Error('Cannot find GoReleaser release foo in https://goreleaser.com/static/releases.json') new Error('Cannot find GoReleaser release foo in https://goreleaser.com/releases.json')
); );
}); });
@@ -100,7 +100,7 @@ describe('getRelease', () => {
it('unknown GoReleaser Pro release', async () => { it('unknown GoReleaser Pro release', async () => {
await expect(github.getRelease('goreleaser-pro', 'foo')).rejects.toThrow( await expect(github.getRelease('goreleaser-pro', 'foo')).rejects.toThrow(
new Error('Cannot find GoReleaser release foo in https://goreleaser.com/static/releases-pro.json') new Error('Cannot find GoReleaser release foo in https://goreleaser.com/releases-pro.json')
); );
}); });
}); });
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -59,7 +59,7 @@ export const getReleaseTag = async (distribution: string, version: string): Prom
const tag: string = (await resolveVersion(distribution, version)) || version; const tag: string = (await resolveVersion(distribution, version)) || version;
const suffix: string = goreleaser.distribSuffix(distribution); const suffix: string = goreleaser.distribSuffix(distribution);
const url = `https://goreleaser.com/static/releases${suffix}.json`; const url = `https://goreleaser.com/releases${suffix}.json`;
const releases = await withRetry(async () => { const releases = await withRetry(async () => {
const http: httpm.HttpClient = new httpm.HttpClient('goreleaser-action'); const http: httpm.HttpClient = new httpm.HttpClient('goreleaser-action');
@@ -108,7 +108,7 @@ interface GitHubTag {
const getAllTags = async (distribution: string): Promise<Array<string>> => { const getAllTags = async (distribution: string): Promise<Array<string>> => {
const suffix: string = goreleaser.distribSuffix(distribution); const suffix: string = goreleaser.distribSuffix(distribution);
const url = `https://goreleaser.com/static/releases${suffix}.json`; const url = `https://goreleaser.com/releases${suffix}.json`;
core.debug(`Downloading ${url}`); core.debug(`Downloading ${url}`);
return withRetry(async () => { return withRetry(async () => {