chore: make test work
parent
f0cd1f5e56
commit
d4e5a72a82
|
@ -286,6 +286,7 @@ jobs:
|
||||||
EXPECTED_TAG: 'v0.55.8'
|
EXPECTED_TAG: 'v0.55.8'
|
||||||
SKIPPED_COMMIT: true
|
SKIPPED_COMMIT: true
|
||||||
EXPECTED_NO_PUSH: true
|
EXPECTED_NO_PUSH: true
|
||||||
|
SKIPPED_TAG: true
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.github_token }}
|
github-token: ${{ secrets.github_token }}
|
||||||
skip-commit: 'true'
|
skip-commit: 'true'
|
||||||
|
|
|
@ -160,7 +160,7 @@ module.exports = new (class Git {
|
||||||
*/
|
*/
|
||||||
testHistory = (branch) => {
|
testHistory = (branch) => {
|
||||||
if (ENV === 'dont-use-git') {
|
if (ENV === 'dont-use-git') {
|
||||||
const { EXPECTED_TAG, SKIPPED_COMMIT, EXPECTED_NO_PUSH, SKIPPED_PULL, SKIP_CI } = process.env
|
const { EXPECTED_TAG, SKIPPED_COMMIT, EXPECTED_NO_PUSH, SKIPPED_TAG, SKIPPED_PULL, SKIP_CI } = process.env
|
||||||
|
|
||||||
const expectedCommands = [
|
const expectedCommands = [
|
||||||
'git config user.name "Conventional Changelog Action"',
|
'git config user.name "Conventional Changelog Action"',
|
||||||
|
@ -181,7 +181,9 @@ module.exports = new (class Git {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
expectedCommands.push(`git tag -a ${EXPECTED_TAG} -m "${EXPECTED_TAG}"`)
|
if(!SKIPPED_TAG) {
|
||||||
|
expectedCommands.push(`git tag -a ${EXPECTED_TAG} -m "${EXPECTED_TAG}"`)
|
||||||
|
}
|
||||||
|
|
||||||
if (!EXPECTED_NO_PUSH) {
|
if (!EXPECTED_NO_PUSH) {
|
||||||
expectedCommands.push(`git push origin ${branch} --follow-tags`)
|
expectedCommands.push(`git push origin ${branch} --follow-tags`)
|
||||||
|
|
Loading…
Reference in New Issue