feed-flow icon indicating copy to clipboard operation
feed-flow copied to clipboard

"fetch-depth: 0" is counter-productive?

Open valeriyo opened this issue 8 months ago • 1 comments

Not sure why there is fetch-depth: 0 in ios-testflight-release.yaml ....

From the docs (https://github.com/actions/checkout?tab=readme-ov-file#checkout-v4):

Only a single commit is fetched by default, for the ref/SHA that triggered the workflow. Set fetch-depth: 0 to fetch all history for all branches and tags...

So, most likely, your checkout is slower, because it's fetching EVERYTHING instead of just latest.

It's also mentioned in https://www.marcogomiero.com/posts/2024/kmp-ci-ios/ -- where I came from.

valeriyo avatar Apr 09 '25 20:04 valeriyo

Because i'm using commit counts as a build number. But I'm thinking of moving to something else, like github action number to avoid fetching everything.

prof18 avatar Apr 09 '25 20:04 prof18

Fixed with the recent overhaul of release number: https://github.com/prof18/feed-flow/commit/b26a205dedcddd1e6c1190b9597595526df514d8

prof18 avatar May 20 '25 17:05 prof18