mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
test: Fixes test case
This commit is contained in:
parent
f08f40f621
commit
73a6bacee1
@ -463,11 +463,11 @@ describe('git', () => {
|
|||||||
name: 'asd',
|
name: 'asd',
|
||||||
email: 'as@cat'
|
email: 'as@cat'
|
||||||
},
|
},
|
||||||
isTest: TestFlag.NONE
|
isTest: TestFlag.HAS_CHANGED_FILES
|
||||||
})
|
})
|
||||||
|
|
||||||
const response = await deploy(action)
|
const response = await deploy(action)
|
||||||
expect(execute).toBeCalledTimes(13) // normally 11 runs, +2 of the tag
|
expect(execute).toBeCalledTimes(16)
|
||||||
expect(response).toBe(Status.SUCCESS)
|
expect(response).toBe(Status.SUCCESS)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -317,6 +317,7 @@ export async function deploy(action: ActionInterface): Promise<Status> {
|
|||||||
info(`Changes committed to the ${action.branch} branch… 📦`)
|
info(`Changes committed to the ${action.branch} branch… 📦`)
|
||||||
|
|
||||||
if (action.tag) {
|
if (action.tag) {
|
||||||
|
console.log('ADDING TAG!!!')
|
||||||
info(`Adding '${action.tag}' tag to the commit…`)
|
info(`Adding '${action.tag}' tag to the commit…`)
|
||||||
await execute(
|
await execute(
|
||||||
`git tag ${action.tag}`,
|
`git tag ${action.tag}`,
|
||||||
|
Loading…
Reference in New Issue
Block a user