Skip to content

ci: tag main from extension.yml version when missing#6

Merged
dango85 merged 1 commit intomainfrom
chore/tag-version-workflow
Apr 14, 2026
Merged

ci: tag main from extension.yml version when missing#6
dango85 merged 1 commit intomainfrom
chore/tag-version-workflow

Conversation

@dango85
Copy link
Copy Markdown
Owner

@dango85 dango85 commented Apr 14, 2026

Summary

Adds Tag version on main (.github/workflows/tag-version.yml): when a push to main changes extension.yml, the workflow reads extension.version, and if git tag v{version} does not exist yet, it creates an annotated tag and pushes it.

Why

Merging a release/docs PR does not create tags by default. catalog-entry.json and install docs use .../archive/refs/tags/vX.Y.Z.zip, so the tag must exist on GitHub. This automates that for future bumps where extension.yml is part of the merge.

Behavior

  • Trigger: push to main, path extension.yml only.
  • Idempotent: If v{version} already exists (e.g. manual gh release create), the job exits without failing.
  • Does not create a GitHub Release; only the git tag (archive URL still works).

Follow-up (optional)

A separate workflow on push tags v* could call gh release create for release notes—only if you want Releases every time, not just tags.

@dango85 dango85 merged commit 648f5df into main Apr 14, 2026
2 checks passed
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