mirror of
https://github.com/actions/checkout.git
synced 2025-12-13 22:09:23 +00:00
Add option to fetch tags even if fetch-depth > 0
This commit is contained in:
committed by
Robert Wieczoreck
parent
96f53100ba
commit
b896fd2f38
@@ -805,6 +805,7 @@ async function setup(testName: string): Promise<void> {
|
||||
sparseCheckout: [],
|
||||
sparseCheckoutConeMode: true,
|
||||
fetchDepth: 1,
|
||||
fetchTags: false,
|
||||
lfs: false,
|
||||
submodules: false,
|
||||
nestedSubmodules: false,
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user