diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 10d2580..47bf6b3 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,7 +23,7 @@ jobs: - name: Apply problem matcher uses: ./ with: - build-directory: build/ + build-directory: "" - name: Test problem matcher run: | diff --git a/dist/index.js b/dist/index.js index 18b78d9..4efab8a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2863,7 +2863,7 @@ const matcherPath = __nccwpck_require__.ab + "gcc_matcher.json"; // rootdir :: string const rootdir = () => - core.getInput('build-directory', {required: false}) || "/build"; + core.getInput('build-directory', {required: false}); // parse :: IO() => IO() => Error | null const parse = (templatePath) => (matcherPath) => { diff --git a/src/index.js b/src/index.js index bae4398..0a60ade 100644 --- a/src/index.js +++ b/src/index.js @@ -19,18 +19,13 @@ const templatePath = path.join(__dirname, "gcc_matcher.jsontemplate"); const matcherPath = path.join(__dirname, "gcc_matcher.json"); // rootdir :: string -const rootdir = () => - core.getInput('build-directory', {required: false}); +const rootdir = core.getInput('build-directory', {required: false}); // parse :: IO() => IO() => Error | null const parse = (templatePath) => (matcherPath) => { - const r = rootdir(); - - console.log(r); - const content = fs.readFileSync(templatePath, 'utf-8'); - const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir())); + const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir)); fs.writeFileSync(matcherPath, parsed);