Skip to content

ci: fix nightly workflow failing on non-semver tag#139

Merged
blsmth merged 1 commit intomainfrom
fix-nightly-tag-semver
May 4, 2026
Merged

ci: fix nightly workflow failing on non-semver tag#139
blsmth merged 1 commit intomainfrom
fix-nightly-tag-semver

Conversation

@blsmth
Copy link
Copy Markdown
Contributor

@blsmth blsmth commented May 1, 2026

Summary

The nightly workflow fails after the first successful run because GoReleaser auto-detects the nearest reachable tag from HEAD and tries to parse it as semver — even in --snapshot mode. Once the previous run pushes the nightly tag, every subsequent run hits:

error=failed to parse tag 'nightly' as semver: Invalid Semantic Version

Fix: delete the local nightly tag before running GoReleaser so it falls back to the previous semver tag (e.g. v4.6.7). The tag is force-pushed back to the new HEAD later in the workflow, so this only affects the local checkout.

Failing run: https://github.com/apppackio/apppack/actions/runs/25230315118/job/73983937457

GoReleaser auto-detects the nearest reachable tag from HEAD and parses
it as semver, even in --snapshot mode. After the first nightly run, the
non-semver `nightly` tag becomes an ancestor of HEAD on subsequent runs
and breaks the workflow with:

  error=failed to parse tag 'nightly' as semver: Invalid Semantic Version

Delete the local `nightly` tag before GoReleaser runs so it falls back
to the previous semver tag (e.g. v4.6.7). The tag is force-pushed back
to the new HEAD later in the workflow, so this is local-only.
@blsmth blsmth merged commit 4ffe4a0 into main May 4, 2026
4 checks passed
@blsmth blsmth deleted the fix-nightly-tag-semver branch May 4, 2026 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant