Skip to content

Commit 23bd94d

Browse files
committed
Update matchers file locations
1 parent d3692a3 commit 23bd94d

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

problem-matchers/shellcheck-gcc-problem-matcher.json renamed to .github/shellcheck-gcc.json

File renamed without changes.

problem-matchers/shellcheck-json-problem-matcher.json renamed to .github/shellcheck-json.json

File renamed without changes.

problem-matchers/shellcheck-tty-problem-matcher.json renamed to .github/shellcheck-tty.json

File renamed without changes.

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,19 @@ module.exports = require("os");
6060
/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
6161

6262
const core = __webpack_require__(470);
63+
const path = __webpack_require__(622);
6364

6465
const AVAILABLE_FORMATS = ['gcc', 'json', 'tty'];
6566

6667
async function run() {
6768
try {
6869
const inputFormat = core.getInput('format');
6970
const formats = inputFormat ? [inputFormat] : AVAILABLE_FORMATS;
71+
const matchersPath = path.join(__dirname, '..', '.github');
7072

7173
for (const format of formats) {
7274
console.log(`Activating shellcheck problem matcher for format '${format}'`);
73-
console.log(`::add-matcher::problem-matchers/shellcheck-${format}-problem-matcher.json`);
75+
console.log(`##[add-matcher]${path.join(matchersPath, `shellcheck-${format}.json`)}`);
7476
}
7577
} catch (error) {
7678
core.setFailed(error.message);

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
const core = require('@actions/core');
2+
const path = require('path');
23

34
const AVAILABLE_FORMATS = ['gcc', 'json', 'tty'];
45

56
async function run() {
67
try {
78
const inputFormat = core.getInput('format');
89
const formats = inputFormat ? [inputFormat] : AVAILABLE_FORMATS;
10+
const matchersPath = path.join(__dirname, '..', '.github');
911

1012
for (const format of formats) {
1113
console.log(`Activating shellcheck problem matcher for format '${format}'`);
12-
console.log(`::add-matcher::problem-matchers/shellcheck-${format}-problem-matcher.json`);
14+
console.log(`##[add-matcher]${path.join(matchersPath, `shellcheck-${format}.json`)}`);
1315
}
1416
} catch (error) {
1517
core.setFailed(error.message);

0 commit comments

Comments
 (0)