All multi-line parameters in ImageEnvFactory should use --env {paramter} notation rather than --env{name}={value}
							parent
							
								
									ce1716ae05
								
							
						
					
					
						commit
						6f7c978890
					
				|  | @ -3447,10 +3447,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) { | ||||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||||
| exports.ActionYamlReader = void 0; | exports.ActionYamlReader = void 0; | ||||||
| const fs_1 = __importDefault(__webpack_require__(35747)); | const fs_1 = __importDefault(__webpack_require__(35747)); | ||||||
|  | const path_1 = __importDefault(__webpack_require__(85622)); | ||||||
| const yaml_1 = __importDefault(__webpack_require__(13552)); | const yaml_1 = __importDefault(__webpack_require__(13552)); | ||||||
| class ActionYamlReader { | class ActionYamlReader { | ||||||
|     constructor() { |     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) { |     GetActionYamlValue(key) { | ||||||
|         var _a; |         var _a; | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -1,10 +1,15 @@ | ||||||
| import fs from 'fs'; | import fs from 'fs'; | ||||||
|  | import path from 'path'; | ||||||
| import YAML from 'yaml'; | import YAML from 'yaml'; | ||||||
| 
 | 
 | ||||||
| export class ActionYamlReader { | export class ActionYamlReader { | ||||||
|   private actionYamlParsed: any; |   private actionYamlParsed: any; | ||||||
|   public constructor() { |   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) { |   public GetActionYamlValue(key: string) { | ||||||
|     return this.actionYamlParsed.inputs[key]?.description || 'No description found in action.yml'; |     return this.actionYamlParsed.inputs[key]?.description || 'No description found in action.yml'; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue