1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-05-10 02:00:03 +00:00

Adding fetch tags even when fetch depth is greater than 0

This commit is contained in:
Dhruvil Thakkar 2023-04-25 09:10:53 +01:00
parent f095bcc56b
commit a1ab6b9f77
9 changed files with 1328 additions and 1305 deletions

View file

@ -801,6 +801,7 @@ async function setup(testName: string): Promise<void> {
clean: true,
commit: '',
fetchDepth: 1,
fetchTags: false,
lfs: false,
submodules: false,
nestedSubmodules: false,

View file

@ -80,6 +80,7 @@ describe('input-helper tests', () => {
expect(settings.commit).toBeTruthy()
expect(settings.commit).toBe('1234567890123456789012345678901234567890')
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')