mirror of
https://github.com/goreleaser/goreleaser-action.git
synced 2026-05-16 07:30:32 +00:00
refactor: drop legacy 'nightly' tag fallback
Both goreleaser and goreleaser-pro now publish nightly releases as vX.Y.Z-<sha>-nightly, so the action no longer needs to special-case or fall back to the moving 'nightly' tag. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4c6ab561ad
commit
a71152e827
4 changed files with 8 additions and 26 deletions
|
|
@ -56,12 +56,10 @@ describe('getRelease', () => {
|
|||
expect(release?.tag_name).not.toEqual('');
|
||||
});
|
||||
|
||||
it('resolves nightly to the legacy nightly tag for OSS GoReleaser', async () => {
|
||||
// No <version>-<sha>-nightly release exists in goreleaser/goreleaser yet,
|
||||
// so this should fall back to the legacy moving `nightly` tag.
|
||||
it('resolves nightly to a <version>-<sha>-nightly release for OSS GoReleaser', async () => {
|
||||
const release = await github.getRelease('goreleaser', 'nightly');
|
||||
expect(release).not.toBeNull();
|
||||
expect(release.tag_name).toEqual('nightly');
|
||||
expect(release.tag_name).toMatch(github.nightlyTagRegex);
|
||||
});
|
||||
|
||||
it('resolves nightly to a <version>-<sha>-nightly release for GoReleaser Pro', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue