Skip to content

Conversation

@nplasterer
Copy link
Contributor

3rd times a charm. When I ran the command locally it worked fine but in the github action it failed with

Run TAG=`echo $(git describe --tags --abbrev=0)`
fatal: No names found, cannot describe anything.

From this stackoverflow I discovered that the github action was making a shallow clone of the repo that did not include the tag information. This should fix that. 🤞

@nplasterer nplasterer requested review from a team and neekolas January 18, 2023 23:14
@nplasterer nplasterer self-assigned this Jan 18, 2023
@nplasterer
Copy link
Contributor Author

nplasterer commented Jan 18, 2023

I feel like I'm shooting in the dark here a bit but from this updated document. It looks like this is the new way of getting all of the branches and tags https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches 🤞 So changing to this since it's a bit cleaner.

@nplasterer nplasterer merged commit 0718000 into main Jan 18, 2023
@nplasterer nplasterer deleted the np/unshallow-github-action branch January 18, 2023 23:30
@github-actions
Copy link

🎉 This PR is included in version 3.12.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants