Checkout: What determines if `--no-tags` or `--tags` is used in the git fetch of this action?

Created on 13 Sep 2019  路  5Comments  路  Source: actions/checkout

I'm trying to introduce GitHub actions to a repository that uses git describe --tags as a step. For some reason, the fetches on a private repository of my organization does a fetch with --no-tags.
My experiments in an experimental repo with the tagging feature inside GitHub show it fetching with --tags. The logic of this action isn't contained in the source code of this repo so I'm not sure why it's doing this kind of fetch. If this is a difference in behavior between lightweight tags and annotated tags, this behavior should be documented.

Most helpful comment

I can safely say the pain brought us closer. It's all good.

All 5 comments

@nelsonjchen
actions/checkout@v1 should always fetch with --tags, there was a bug last week where we accidentally change the behavior to --no-tags without bumping the action's version.
We reverted the change, but due to a setting error, a small set of customers didn't get the revert.
I noticed the setting problem a few hours back and fix it, so everyone uses checkout@v1 gets the same behavior which is git fetch --tags.

Alright. Whew. OK, this explains today's fun. Thanks for the reply.

FYI: @ctranquill

Sorry for the trouble 馃槶

I can safely say the pain brought us closer. It's all good.

@TingluoHuang I'm looking for a way to use --no-tags but only see a v1 of this action, will a v2 be released with this option?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rster2002 picture rster2002  路  7Comments

kooyear picture kooyear  路  7Comments

gitfool picture gitfool  路  3Comments

zeke picture zeke  路  7Comments

luludan picture luludan  路  5Comments