algolia / shipjs

Take control of what is going to be your next release.
https://community.algolia.com/shipjs/
MIT License
765 stars 30 forks source link

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

Closed SevenOutman closed 2 years ago

SevenOutman commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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!