[feat] Remove artifacts used for testing action

This commit is contained in:
olemorud
2023-03-14 17:08:09 +01:00
parent d87815601a
commit b651f721c4
3 changed files with 4 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ jobs:
- name: Apply problem matcher - name: Apply problem matcher
uses: ./ uses: ./
with: with:
build-directory: build/ build-directory: ""
- name: Test problem matcher - name: Test problem matcher
run: | run: |

2
dist/index.js vendored
View File

@@ -2863,7 +2863,7 @@ const matcherPath = __nccwpck_require__.ab + "gcc_matcher.json";
// rootdir :: string // rootdir :: string
const rootdir = () => const rootdir = () =>
core.getInput('build-directory', {required: false}) || "/build"; core.getInput('build-directory', {required: false});
// parse :: IO() => IO() => Error | null // parse :: IO() => IO() => Error | null
const parse = (templatePath) => (matcherPath) => { const parse = (templatePath) => (matcherPath) => {

View File

@@ -19,18 +19,13 @@ const templatePath = path.join(__dirname, "gcc_matcher.jsontemplate");
const matcherPath = path.join(__dirname, "gcc_matcher.json"); const matcherPath = path.join(__dirname, "gcc_matcher.json");
// rootdir :: string // rootdir :: string
const rootdir = () => const rootdir = core.getInput('build-directory', {required: false});
core.getInput('build-directory', {required: false});
// parse :: IO() => IO() => Error | null // parse :: IO() => IO() => Error | null
const parse = (templatePath) => (matcherPath) => { const parse = (templatePath) => (matcherPath) => {
const r = rootdir();
console.log(r);
const content = fs.readFileSync(templatePath, 'utf-8'); 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); fs.writeFileSync(matcherPath, parsed);