豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content
Discussion options

You must be logged in to vote

Two things are going on.

First, how paulhatch/semantic-version actually works. It looks at the latest tag matching your tag_prefix, then counts commits since that tag to compute patch, and counts commits matching minor_pattern / major_pattern since the last minor or major bump. If you manually dispatch the workflow twice without any new commit landing on the branch in between, the action sees the same commit graph and returns the same version. So the first gotcha: a new version requires new commits. Re-running the same workflow on the same HEAD won't bump anything.

Second, the self-hosted runner part is probably biting you. actions/checkout on self-hosted keeps the workspace between runs …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rod-at-DOH
Comment options

Answer selected by Rod-at-DOH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Configuration Topics about workflow files, YAML setup, job dependencies, and general workflow configuration issues source:ui Discussions created via Community GitHub templates
2 participants