diff --git a/__test__/input-helper.test.ts b/__test__/input-helper.test.ts index 9514cb4..fcb242a 100644 --- a/__test__/input-helper.test.ts +++ b/__test__/input-helper.test.ts @@ -80,6 +80,7 @@ describe('input-helper tests', () => { expect(settings.commit).toBeTruthy() expect(settings.commit).toBe('1234567890123456789012345678901234567890') expect(settings.filter).toBe(undefined) + expect(settings.defaultBranchCheckout).toBe(false) expect(settings.sparseCheckout).toBe(undefined) expect(settings.sparseCheckoutConeMode).toBe(true) expect(settings.fetchDepth).toBe(1) diff --git a/dist/index.js b/dist/index.js index 77146ce..6712e8f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1741,7 +1741,7 @@ function getInputs() { core.debug(`commit = '${result.commit}'`); // Default branch checkout result.defaultBranchCheckout = - (core.getInput('default-branch-checkout') || 'true').toUpperCase() === + (core.getInput('default-branch-checkout') || 'false').toUpperCase() === 'TRUE'; core.debug(`default-branch-checkout = '${result.defaultBranchCheckout}'`); // Clean diff --git a/src/input-helper.ts b/src/input-helper.ts index b89a523..11ea294 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -80,7 +80,7 @@ export async function getInputs(): Promise { // Default branch checkout result.defaultBranchCheckout = - (core.getInput('default-branch-checkout') || 'true').toUpperCase() === + (core.getInput('default-branch-checkout') || 'false').toUpperCase() === 'TRUE' core.debug(`default-branch-checkout = '${result.defaultBranchCheckout}'`)