zowe-actions / octorelease

Extensible GitHub action to publish semantic releases
Apache License 2.0
4 stars 0 forks source link

Investigate fetch-tags option for `actions/checkout` in GHA #125

Closed t1m0thyj closed 9 months ago

t1m0thyj commented 11 months ago

Our documentation for GitHub Actions suggests to use fetch-depth: 0 in order to do a deep (not shallow) clone. https://github.com/zowe-actions/octorelease/blob/master/docs/recipes.md#github-actions

In actions/checkout@v3, a new option fetch-tags was added that is independent of fetch-depth. If this provides enough Git history for Octorelease to work correctly, it would be more efficient then fetching everything. Thanks to @zFernand0 for suggesting this 😋

t1m0thyj commented 11 months ago

In addition to Octorelease itself, lerna may depend on Git history being present. See https://github.com/lerna/lerna/issues/2542

t1m0thyj commented 11 months ago

Can't use fetch-tags until https://github.com/actions/checkout/issues/1471 is fixed

t1m0thyj commented 9 months ago

Closing for now, the linked issue seems stale but will keep monitoring it