checkout: Fetching tags doesn't work
I have tried almost every configuration of this action I can think of.
I am running:
- uses: actions/checkout@v2
- run: |
git fetch --prune --unshallow
- run: |
echo $(git tag -l)
I expect to see the tags from my repository in the output.
I am currently seeing nothing.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 15 (9 by maintainers)
Links to this issue
Commits related to this issue
- Revert "Revert "Fix CI (see actions/checkout#23)"" This using suggested in actions/checkout#206 way to fetch tags. This reverts commit 6a306641d7e0cb136f5366697e69a8c81592ccaa. — committed to skirpichev/diofant by skirpichev 4 years ago
- Revert "Revert "Fix CI (see actions/checkout#23)"" This using suggested in actions/checkout#206 way to fetch tags. This reverts commit 6a306641d7e0cb136f5366697e69a8c81592ccaa. — committed to skirpichev/diofant by skirpichev 4 years ago
- fix(gh-action): version interpolation with setuptools_scm Giving up, until some clues are given here: https://github.com/actions/checkout/issues/206 — committed to templateflow/python-client by oesteban 4 years ago
- fix git describe / sbt-dynver https://github.com/actions/checkout/issues/206 — committed to bjaglin/sbt-scalafix by github-brice-jaglin 4 years ago
- Fetch git tags By default, Github Actions checkout does a shallow clone and does not fetch tag information, that we need for versioning. See https://github.com/actions/checkout/issues/206 — committed to oaubert/advene by oaubert 3 years ago
- Try https://github.com/actions/checkout/issues/206 — committed to wxFormBuilder/wxFormBuilder by sodevel 3 years ago
- Fetch tags after checkout The checkout action does not fetch any tags resulting in `git describe` failing. The recommended solution `git fetch --prune --unshallow --tags` of https://github.com/action... — committed to wxFormBuilder/wxFormBuilder by sodevel 3 years ago
- fix error using https://github.com/actions/checkout/issues/206#issuecomment-607496604 — committed to vikineema/deafrica-sandbox-notebooks by vikineema 2 years ago
- chore(release): unshallow tags (#983) <!-- For Coveo Employees only. Fill this section. CDX-764 --> ## Proposed changes GitHub does some funky stuff for the checkout. This seems to fix it... — committed to coveo/cli by louis-bompart 2 years ago
- Configure `actions/checkout` to also check out tags, so they can be used to generate the changelog, with thanks to https://github.com/actions/checkout/issues/206#issuecomment-614129126 — committed to volkertb/SBEMU by volkertb 5 months ago
- Check out tags, so Git log can be used to generate the changelog, with thanks to https://github.com/actions/checkout/issues/206#issuecomment-614129126 — committed to volkertb/SBEMU by volkertb 5 months ago
- Check out tags, so Git log can be used to generate the changelog, with thanks to https://github.com/actions/checkout/issues/206#issuecomment-614129126 — committed to volkertb/SBEMU by volkertb 5 months ago
- Check out tags, so Git log can be used to generate the changelog, with thanks to https://github.com/actions/checkout/issues/206#issuecomment-614129126 — committed to volkertb/SBEMU by volkertb 5 months ago
what about
git fetch --prune --unshallow --tags
?This worked for me (at first I tried the readme instructions):
This works for me:
I also tried the README and then found the answer at https://github.com/actions/checkout/issues/206#issuecomment-607496604 . Would be nice to fix the README. Thanks for making GitHub Actions accessible for OSS!
Unlike others, I use fork.