[feat] Remove artifacts used for testing action
This commit is contained in:
2
.github/workflows/CI.yml
vendored
2
.github/workflows/CI.yml
vendored
@@ -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
2
dist/index.js
vendored
@@ -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) => {
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user