Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Git tag doesn't exist" in GitHub Actions #973

Closed
SevenOutman opened this issue Feb 10, 2022 · 2 comments
Closed

"Git tag doesn't exist" in GitHub Actions #973

SevenOutman opened this issue Feb 10, 2022 · 2 comments

Comments

@SevenOutman
Copy link

Describe the bug
Hi, I was trying to setup shipjs with my GitHub Actions workflow and got this error when doing a shipjs prepare --dry-run. I checked the repo and was sure that the tag exists. No clue what went wrong.

Expected behavior
shipjs prepare works as expected

Screenshots
https://github.com/rsuite/rsuite/runs/5138487184?check_suite_focus=true
image

@eunjae-lee
Copy link
Contributor

Hi @SevenOutman I think on GH Action, tags are not fetched properly.
Reading this issue, I'd suggest you to try

    steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0

@SevenOutman
Copy link
Author

Hi @SevenOutman I think on GH Action, tags are not fetched properly. Reading this issue, I'd suggest you to try

    steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0

It works, thanks!

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

No branches or pull requests

2 participants