Base path of JSON file on path relative to index.js instead of CWD

This commit is contained in:
Jonas Bengtsson 2020-01-03 12:00:06 +01:00
parent 499a64419b
commit fffea1827d

View file

@ -1,5 +1,5 @@
console.log(`::add-matcher::${process.cwd()}/.github/android-lint-file-matcher.json`); console.log(`::add-matcher::${__dirname}/.github/android-lint-file-matcher.json`);
console.log(`::add-matcher::${process.cwd()}/.github/android-lint-line-matcher.json`); console.log(`::add-matcher::${__dirname}/.github/android-lint-line-matcher.json`);
console.log(`::add-matcher::${process.cwd()}/.github/gradle-matcher.json`); console.log(`::add-matcher::${__dirname}/.github/gradle-matcher.json`);
console.log(`::add-matcher::${process.cwd()}/.github/kotlin-error-matcher.json`); console.log(`::add-matcher::${__dirname}/.github/kotlin-error-matcher.json`);
console.log(`::add-matcher::${process.cwd()}/.github/kotlin-warning-matcher.json`); console.log(`::add-matcher::${__dirname}/.github/kotlin-warning-matcher.json`);