Skip to content

git describe --abbrev=0 shows wrong tag #272

@hannesa2

Description

@hannesa2

Something 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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions