Skip to content

Commit b651f72

Browse files
committed
[feat] Remove artifacts used for testing action
1 parent d878156 commit b651f72

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Apply problem matcher
2424
uses: ./
2525
with:
26-
build-directory: build/
26+
build-directory: ""
2727

2828
- name: Test problem matcher
2929
run: |

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2863,7 +2863,7 @@ const matcherPath = __nccwpck_require__.ab + "gcc_matcher.json";
28632863

28642864
// rootdir :: string
28652865
const rootdir = () =>
2866-
core.getInput('build-directory', {required: false}) || "/build";
2866+
core.getInput('build-directory', {required: false});
28672867

28682868
// parse :: IO() => IO() => Error | null
28692869
const parse = (templatePath) => (matcherPath) => {

src/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,13 @@ const templatePath = path.join(__dirname, "gcc_matcher.jsontemplate");
1919
const matcherPath = path.join(__dirname, "gcc_matcher.json");
2020

2121
// rootdir :: string
22-
const rootdir = () =>
23-
core.getInput('build-directory', {required: false});
22+
const rootdir = core.getInput('build-directory', {required: false});
2423

2524
// parse :: IO() => IO() => Error | null
2625
const parse = (templatePath) => (matcherPath) => {
27-
const r = rootdir();
28-
29-
console.log(r);
30-
3126
const content = fs.readFileSync(templatePath, 'utf-8');
3227

33-
const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir()));
28+
const parsed = content.replace(variable("BASE"), escapeRegExp(rootdir));
3429

3530
fs.writeFileSync(matcherPath, parsed);
3631

0 commit comments

Comments
 (0)