Skip to content

Commit 9881cc5

Browse files
committed
fix: use new static URL
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1 parent 07f3f34 commit 9881cc5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

__tests__/github.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('getRelease', () => {
2222

2323
it('unknown GoReleaser release', async () => {
2424
await expect(github.getRelease('goreleaser', 'foo')).rejects.toThrow(
25-
new Error('Cannot find GoReleaser release foo in https://goreleaser.com/static/releases.json')
25+
new Error('Cannot find GoReleaser release foo in https://goreleaser.com/releases.json')
2626
);
2727
});
2828

@@ -100,7 +100,7 @@ describe('getRelease', () => {
100100

101101
it('unknown GoReleaser Pro release', async () => {
102102
await expect(github.getRelease('goreleaser-pro', 'foo')).rejects.toThrow(
103-
new Error('Cannot find GoReleaser release foo in https://goreleaser.com/static/releases-pro.json')
103+
new Error('Cannot find GoReleaser release foo in https://goreleaser.com/releases-pro.json')
104104
);
105105
});
106106
});

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export const getReleaseTag = async (distribution: string, version: string): Prom
5959

6060
const tag: string = (await resolveVersion(distribution, version)) || version;
6161
const suffix: string = goreleaser.distribSuffix(distribution);
62-
const url = `https://goreleaser.com/static/releases${suffix}.json`;
62+
const url = `https://goreleaser.com/releases${suffix}.json`;
6363

6464
const releases = await withRetry(async () => {
6565
const http: httpm.HttpClient = new httpm.HttpClient('goreleaser-action');
@@ -108,7 +108,7 @@ interface GitHubTag {
108108

109109
const getAllTags = async (distribution: string): Promise<Array<string>> => {
110110
const suffix: string = goreleaser.distribSuffix(distribution);
111-
const url = `https://goreleaser.com/static/releases${suffix}.json`;
111+
const url = `https://goreleaser.com/releases${suffix}.json`;
112112
core.debug(`Downloading ${url}`);
113113

114114
return withRetry(async () => {

0 commit comments

Comments
 (0)