How could I use a variable in updateMetadata?

I try to use a variable instead of a string as value inside actions but whatever I try it is always the string following the value: statement. But I am receiving the value from a js file. So “36” is supposed to be replaced by variable JsResult.

What I’m trying to do

actions:

  • type: js
    file: customJS/my-script.js
    args: {}
  • type: updateMetadata
    bindTarget: AktieMyRanking
    evaluate: true
    value: “36”

Things I have tried

the example in the docs use a string only, never a variable.