Actions: GetJobDataOutValue
Related tasks
Context
The actions framework provides a GetJobData
function that unmarshals job data. It automatically determines and instances a new value of the correct type before unmarshalling. In order to do this, the actions framework contains a type registry that contains a set of known types to allow it to automatically unmarshal the information it stores into Go values.
This approach works well in some cases, but the disadvantage is that the types must be known at compile time. This is not always possible or practical.
Change
- A new function
GetJobDataOutValue
has been introduced that allows retrieving job data without a registry by receiving the value in which to store the unmarshalled data by parameter. - The former internal
getJobData
function has been renamed togetJobDataFromRegistry
.
Other information
Additional documentation
Edited by Alejo Carballude