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:
parent
96f53100ba
commit
b896fd2f38
9 changed files with 38 additions and 8 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue