DEV Community

SHasina
SHasina

Posted on

I am trying to run script from action workflow. How to input value from workflow into script for further computation.

Liquid syntax error: Variable '{{ format('{0}' was not properly terminated with regexp: /\}\}/

Top comments (1)

Collapse
 
accreditly profile image
Accreditly

Can you share your GitHub Action yaml so we can see the code to try and help?

Looking at the error, it looks like there is no closing curly braces. Every opening curly brace must be closed:

{{ variable }}
Enter fullscreen mode Exit fullscreen mode

not:

{{ variable
Enter fullscreen mode Exit fullscreen mode

But without seeing the full code it's near impossible to help beyond that.

Also, most variables should be prepended with a $. For example, here's how to grab an input:

${{ github.event.inputs.message }}
Enter fullscreen mode Exit fullscreen mode

But again, it's all guess work without seeing the code causing the problem.