Skip to content

Fetch tags in git checkout to fix publish workflows#99

Merged
kowh-ai merged 1 commit intomainfrom
fix-publish-master
Dec 3, 2024
Merged

Fetch tags in git checkout to fix publish workflows#99
kowh-ai merged 1 commit intomainfrom
fix-publish-master

Conversation

@amercader
Copy link
Copy Markdown
Member

Introduced in #92
GitHub Actions performs a shallow clone that doesn't include all tags by default so this command:

LATEST_GIT_TAG=$(git describe --tags --abbrev=0)

Was failing with:

 fatal: No names found, cannot describe anything.

This setting makes the checkout fetch the tags as well

GitHub Actions performs a shallow clone that doesn't include all tags by
default so this command:

    LATEST_GIT_TAG=$(git describe --tags --abbrev=0)

Was failing with:

     fatal: No names found, cannot describe anything.

This setting makes the checkout fetch the tags as well
@kowh-ai kowh-ai merged commit 2704e6e into main Dec 3, 2024
@kowh-ai kowh-ai deleted the fix-publish-master branch December 3, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants