mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-06-29 21:29:42 +00:00
fix: use new static URL
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
@@ -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')
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+2
-2
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user