Add option to fetch tags even if fetch-depth > 0 (#579)

* Add option to fetch tags even if fetch-depth > 0

* Add jest tests for fetchDepth and fetchTags options
这个提交包含在:
Robert Wieczoreck
2023-08-16 22:34:54 +02:00
提交者 GitHub
父节点 96f53100ba
当前提交 7739b9ba2e
共有 10 个文件被更改,包括 214 次插入 和 8 次删除

查看文件

@ -82,6 +82,7 @@ describe('input-helper tests', () => {
expect(settings.sparseCheckout).toBe(undefined)
expect(settings.sparseCheckoutConeMode).toBe(true)
expect(settings.fetchDepth).toBe(1)
expect(settings.fetchTags).toBe(false)
expect(settings.lfs).toBe(false)
expect(settings.ref).toBe('refs/heads/some-ref')
expect(settings.repositoryName).toBe('some-repo')