From fffea1827d26d62c57939880d5a5a86221af57db Mon Sep 17 00:00:00 2001 From: Jonas Bengtsson Date: Fri, 3 Jan 2020 12:00:06 +0100 Subject: [PATCH] Base path of JSON file on path relative to index.js instead of CWD --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 6f42e9f..2aa061d 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ -console.log(`::add-matcher::${process.cwd()}/.github/android-lint-file-matcher.json`); -console.log(`::add-matcher::${process.cwd()}/.github/android-lint-line-matcher.json`); -console.log(`::add-matcher::${process.cwd()}/.github/gradle-matcher.json`); -console.log(`::add-matcher::${process.cwd()}/.github/kotlin-error-matcher.json`); -console.log(`::add-matcher::${process.cwd()}/.github/kotlin-warning-matcher.json`); +console.log(`::add-matcher::${__dirname}/.github/android-lint-file-matcher.json`); +console.log(`::add-matcher::${__dirname}/.github/android-lint-line-matcher.json`); +console.log(`::add-matcher::${__dirname}/.github/gradle-matcher.json`); +console.log(`::add-matcher::${__dirname}/.github/kotlin-error-matcher.json`); +console.log(`::add-matcher::${__dirname}/.github/kotlin-warning-matcher.json`);