pietrobolcato / action-read-yaml

Custom github action used to read yaml files, supporting multiple keys and variable replacements
10 stars 16 forks source link

TypeError: value.match is not a function #12

Closed shashidhar087 closed 5 months ago

shashidhar087 commented 6 months ago

Hello,

The config yaml file look like,

name: example
environment:
  name: example

The error is,

/home/ubuntu/actions-runner/_work/_actions/pietrobolcato/action-read-yaml/1.0.0/action_read_yaml/index.js:23 let match = value.match(/\$(([^)]+))/); ^

TypeError: value.match is not a function at replaceVariables (/home/ubuntu/actions-runner/_work/_actions/pietrobolcato/action-read-yaml/1.0.0/action_read_yaml/index.js:23:21) at /home/ubuntu/actions-runner/_work/_actions/pietrobolcato/action-read-yaml/1.0.0/action_read_yaml/index.js:60:25 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3)

What could be the issue ?

shashidhar087 commented 5 months ago

This issue is solved in v1.1.0