Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: (e || "").replace is not a function #21

Closed
bakermat opened this issue Jun 4, 2021 · 2 comments
Closed

Error: (e || "").replace is not a function #21

bakermat opened this issue Jun 4, 2021 · 2 comments

Comments

@bakermat
Copy link

bakermat commented Jun 4, 2021

I've got a simple YAML file but when trying to parse it I get:
Error: (e || "").replace is not a function

This was with a file.yml file in the root of the repo.

My code:

  - name: parse config
    id: parseconfig
    uses: CumulusDS/get-yaml-paths-action@v0.1.0
    with:
      file: file.yml
      shortname: shortname
      search: search
      version: version
      app: app

image

Any thoughts?

PS: does the file also support wildcards, or is it only one file at a time?

@justinmdudley
Copy link

I was having this issue as well. I had some entries in my .yml file that were numbers and strings with hyphens. I wrapped them in quotes and the issue was resolved.

@joshuanapoli
Copy link
Member

Could you show a .yml file that exhibits this problem? I'm not sure where the .replace error comes from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants