Closed jaimehrubiks closed 9 months ago
Hey @jaimehrubiks, I am not sure which distribution your self-hosted runner is using, but I know there are issues on Alpine for example which I haven't yet addressed. Right now I am only using officially supported runner images, as setting up a runner image is a small project by itself and without an official standard image to test there's no guarantee it would be compatible anyway.
There is a diagnostic mode which produces a log of all the commands run by the action and what the results were. You can share this here if you like (watch out not to share emails you don't want public) or simply comparing the two yourself may give you insight.
I haven't yet run this action on a self hosted runner myself so any findings here would be of interest if you could share them.
I'll do more tests soon, will keep you posted!
Experienced this in our actions-runner-controller private runners on k8s, running ghcr.io/actions/actions-runner:latest
Made a workaround by
git pull --tags
prior to running paulhatch/semantic-versioningSeems to have done the trick.
Sorry, I forgot about this and had a couple of very simple actions running on GitHub hosted runners just for this purpose. Thanks for the trick @rune-braathen
Thanks @rune-braathen
This issue is a little bit odd, but using regular ubuntu-latest runner, it works perfectly. However, using self-hosted runners I can't get it to work.
Settings:
Expected output (github runners):
Results obtained:
I tried multiple Docker images for the self-hosted runners, my own ones created from scratch, and others like https://hub.docker.com/r/summerwind/actions-runner/tags
I verified that the "git" version on both github runners and self-hosted is the same (git version 2.42.0), and I can verify with "git log" that "Checkout@v4" is correctly showing the whole commit history.
Any hints? Not sure what else I could check.