mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-16 15:40:34 +00:00
fix: use new static URL
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
07f3f34e99
commit
9881cc5376
3 changed files with 5 additions and 5 deletions
|
|
@ -22,7 +22,7 @@ describe('getRelease', () => {
|
|||
|
||||
it('unknown GoReleaser release', async () => {
|
||||
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 () => {
|
||||
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')
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -59,7 +59,7 @@ export const getReleaseTag = async (distribution: string, version: string): Prom
|
|||
|
||||
const tag: string = (await resolveVersion(distribution, version)) || version;
|
||||
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 http: httpm.HttpClient = new httpm.HttpClient('goreleaser-action');
|
||||
|
|
@ -108,7 +108,7 @@ interface GitHubTag {
|
|||
|
||||
const getAllTags = async (distribution: string): Promise<Array<string>> => {
|
||||
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}`);
|
||||
|
||||
return withRetry(async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue