1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-05-10 03:49:55 +02:00

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

This commit is contained in:
Robert Wieczoreck 2021-09-07 22:49:58 +02:00 committed by Robert Wieczoreck
parent 96f53100ba
commit b896fd2f38
9 changed files with 38 additions and 8 deletions

View file

@ -805,6 +805,7 @@ async function setup(testName: string): Promise<void> {
sparseCheckout: [],
sparseCheckoutConeMode: true,
fetchDepth: 1,
fetchTags: false,
lfs: false,
submodules: false,
nestedSubmodules: false,

View file

@ -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')