Resolve the changelog base ref and next semantic version from merged pull request labels.
- name: Resolve version metadata
id: version
uses: athackst/ci/actions/version-resolver@main
with:
gh-token: $
| Name | Description | Default |
|---|---|---|
configuration-path |
(optional) Path to the version resolver config. | Bundled versions.yml |
repo |
(optional) Repository in owner/repo format used for pull request lookup. |
$ |
gh-token |
(optional) GitHub token used for API lookup. | $ |
pr-info-path |
(optional) Output file path for resolver PR info JSON data. | $/version-resolver-pr-info.json |
| Name | Description |
|---|---|
from-ref |
Resolved changelog base reference. |
latest-semver-tag |
Latest reachable semantic version tag detected by the resolver, if any. |
resolved-version |
Resolved semantic version. |
major-version |
Resolved major version component. |
minor-version |
Resolved minor version component. |
patch-version |
Resolved patch version component. |
pr-info-path |
Path to the resolver PR info JSON data file. |
contents: read and pull-requests: read are typically sufficient.origin remote for missing tags and shallow history, then fetches tags/history before resolving the version when needed.vX.Y.Z or X.Y.Z tag as from-ref; if no semantic version tag exists, it falls back to the repository’s first commit.latest-semver-tag) so callers can verify tag detection behavior.major label wins over minor, and any configured minor label wins over patch.major or minor labels, the version defaults to a patch bump.pr-info-path; actions/changelog reads the pr_info.pull_requests section from that payload.Use a repository-specific version config:
- name: Resolve version metadata
id: version
uses: athackst/ci/actions/version-resolver@main
with:
configuration-path: .github/versions.yml
gh-token: $