git describe --abbrev=0 shows wrong tag
See original GitHub issueSomething looks wrong with git describe --abbrev=0
I use this
- name: Checkout
uses: actions/checkout@v2.2.0
with:
fetch-depth: 0
and I even do a git fetch --all
Please see here
to grab latest git tag. This is an example with wrong output
Local on my machine I see with git tag -n
1.0.6.13 Attempt to fix git tag 1.0.6.14 1.0.6.14 1.0.6.15 1.0.6.15 1.0.6.16 1.0.6.16 1.0.6.17 1.0.6.17
but on Github CI
1.0.6.13 Attempt to fix git tag 1.0.6.14 1.0.6.14 1.0.6.15 1.0.6.15 1.0.6.16 1.0.6.16 1.0.6.17 Revert “remove Travis”
Local on my machine I see with git log --oneline
881b9db (HEAD -> refs/heads/LogActivity, tag: refs/tags/1.0.6.17, refs/remotes/origin/LogActivity) Revert “remove Travis” 99dddbb (tag: refs/tags/1.0.6.15, tag: refs/tags/1.0.6.14) Attempt to fix release tag 27612c5 (tag: refs/tags/1.0.6.13) Attempt to fix release tag c3bcdb8 (tag: refs/tags/1.0.6.12) Attempt to fix release tag 3c7ce1d (tag: refs/tags/1.0.6.11) LogActivity
on Github CI the output is this. At least the current commit is right 👍
881b9db Revert “remove Travis” 99dddbb Attempt to fix release tag 27612c5 Attempt to fix release tag c3bcdb8 Attempt to fix release tag 3c7ce1d LogActivity
Local on my machine I see with git describe --abbrev=0
1.0.6.17
on Github CI the output is this
1.0.6.15
I verify the same command with Travis, and there it looks (expected) like my local machine.
Has someone an idea what’s wrong here ?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7
Top GitHub Comments
Still shows wrong tag with
git describe --abbrev=0
https://github.com/hannesa2/owncloud-android/pull/5/checks?check_run_id=825271697
It shows me
2.15.0.1
instead of2.15.0.2
. Local it shows me2.15.0.2
sounds related to https://github.com/actions/checkout/issues/290