-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action fails when triggered by a tag. #24
Comments
I upvote this issue as I'm facing the same one. |
No, I'm hoping @SvanBoxel has a chance to look at this - the solution should be as simple as switching out |
Hi @rosiel. Could you test your solution and open a PR if you're confident it works? Thank you! |
Released as pre-release: https://github.com/SvanBoxel/gitlab-mirror-and-ci-action/releases/tag/0.6 |
We are using the
FOLLOW_TAGS
option and have set up our Github workflow to trigger on tag creation.The result is, after creating tag
2.9.0
,I suspect that this is caused by line 25,
git checkout "${GITHUB_REF:11}"
. When theGITHUB_REF
isrefs/heads/<branch_name>
this works, but when it'srefs/tags/<tag_name>
it cuts the first letter off the tag name.I think this could be solved by using
$GITHUB_REF_NAME
which is "The short ref name of the branch or tag that triggered the workflow run. This value matches the branch or tag name shown on GitHub. For example,feature-branch-1
" Source: https://docs.github.com/en/actions/learn-github-actions/variablesThe text was updated successfully, but these errors were encountered: