All multi-line parameters in ImageEnvFactory should use --env {paramter} notation rather than --env{name}={value}

pull/310/head
Frostebite 2021-12-29 19:22:17 +00:00
parent ce1716ae05
commit 6f7c978890
3 changed files with 13 additions and 3 deletions

7
dist/index.js vendored
View File

@ -3447,10 +3447,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ActionYamlReader = void 0;
const fs_1 = __importDefault(__webpack_require__(35747));
const path_1 = __importDefault(__webpack_require__(85622));
const yaml_1 = __importDefault(__webpack_require__(13552));
class ActionYamlReader {
constructor() {
this.actionYamlParsed = yaml_1.default.parse(fs_1.default.readFileSync(`action.yml`).toString());
let filename = `action.yml`;
if (!fs_1.default.existsSync(filename)) {
filename = path_1.default.join(`..`, filename);
}
this.actionYamlParsed = yaml_1.default.parse(fs_1.default.readFileSync(filename).toString());
}
GetActionYamlValue(key) {
var _a;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,15 @@
import fs from 'fs';
import path from 'path';
import YAML from 'yaml';
export class ActionYamlReader {
private actionYamlParsed: any;
public constructor() {
this.actionYamlParsed = YAML.parse(fs.readFileSync(`action.yml`).toString());
let filename = `action.yml`;
if (!fs.existsSync(filename)) {
filename = path.join(`..`, filename);
}
this.actionYamlParsed = YAML.parse(fs.readFileSync(filename).toString());
}
public GetActionYamlValue(key: string) {
return this.actionYamlParsed.inputs[key]?.description || 'No description found in action.yml';