testdriverai 4.2.5 → 4.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.js +6 -0
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -909,9 +909,15 @@ let run = async (file, shouldSave = false, shouldExit = true) => {
|
|
|
909
909
|
await exit(true);
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
+
let interpolationVars = JSON.parse(process.env["TD_INTERPOLATION_VARS"] || '{}');
|
|
913
|
+
|
|
912
914
|
// Inject environment variables into any ${VAR} strings
|
|
913
915
|
yml = parser.interpolate(yml, process.env);
|
|
914
916
|
|
|
917
|
+
// Inject any vars from the TD_INTERPOLATION_VARS variable (typically from the action)
|
|
918
|
+
yml = parser.interpolate(yml, interpolationVars);
|
|
919
|
+
|
|
920
|
+
|
|
915
921
|
let ymlObj = null;
|
|
916
922
|
try {
|
|
917
923
|
ymlObj = await yaml.load(yml);
|