feat(pre-commit): Allow relative path for the pre-commit input
parent
5675cecaa4
commit
afea49fa57
|
@ -38,7 +38,7 @@ jobs:
|
|||
ENV: 'dont-use-git'
|
||||
with:
|
||||
github-token: ${{ secrets.github_token }}
|
||||
pre-commit: ${{ github.workspace }}/test/pre-commit.js
|
||||
pre-commit: test/pre-commit.js
|
||||
skip-on-empty: 'false'
|
||||
|
||||
- run: test -f pre-commit.test.json || (echo should be here && exit 1)
|
||||
|
|
|
@ -103,7 +103,7 @@ async function run() {
|
|||
if (!skipCommit) {
|
||||
// Add changed files to git
|
||||
if (preCommit) {
|
||||
await require(preCommit).preCommit({
|
||||
await require(path.resolve(preCommit)).preCommit({
|
||||
tag: gitTag,
|
||||
version: versioning.newVersion,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue