Skip to content

Commit 9eba52e

Browse files
committed
fix dist
1 parent 41e0558 commit 9eba52e

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

dist/index.js

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46312,6 +46312,14 @@ module.exports.implForWrapper = function (wrapper) {
4631246312

4631346313

4631446314

46315+
/***/ }),
46316+
46317+
/***/ 5746:
46318+
/***/ ((module) => {
46319+
46320+
module.exports = eval("require")("@actions/core");
46321+
46322+
4631546323
/***/ }),
4631646324

4631746325
/***/ 2078:
@@ -65003,8 +65011,20 @@ const excludedDirs = [
6500365011
"bin",
6500465012
];
6500565013

65006-
const input = process.argv[2];
65007-
const outputJson = process.argv[3];
65014+
// If running in GitHub Actions, use @actions/core to get inputs
65015+
let input, outputJson;
65016+
let coreAvailable = false;
65017+
try {
65018+
// Dynamically require @actions/core if available
65019+
const core = __nccwpck_require__(5746);
65020+
coreAvailable = true;
65021+
input = core.getInput("url") || core.getInput("input") || "";
65022+
outputJson = core.getInput("report") || "";
65023+
} catch (e) {
65024+
// fallback to CLI arguments for local/testing use
65025+
input = process.argv[2];
65026+
outputJson = process.argv[3];
65027+
}
6500865028

6500965029
let config = configuration("a11y.config.json");
6501065030

0 commit comments

Comments
 (0)