Skip to content

Commit 73a6bac

Browse files
committed
test: Fixes test case
1 parent f08f40f commit 73a6bac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

__tests__/git.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,11 +463,11 @@ describe('git', () => {
463463
name: 'asd',
464464
email: 'as@cat'
465465
},
466-
isTest: TestFlag.NONE
466+
isTest: TestFlag.HAS_CHANGED_FILES
467467
})
468468

469469
const response = await deploy(action)
470-
expect(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag
470+
expect(execute).toBeCalledTimes(16)
471471
expect(response).toBe(Status.SUCCESS)
472472
})
473473
})

src/git.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
317317
info(`Changes committed to the ${action.branch} branch… 📦`)
318318

319319
if (action.tag) {
320+
console.log('ADDING TAG!!!')
320321
info(`Adding '${action.tag}' tag to the commit…`)
321322
await execute(
322323
`git tag ${action.tag}`,

0 commit comments

Comments
 (0)