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

Example using yaml file throws error #6

Closed
Relequestual opened this issue Jul 27, 2023 · 3 comments
Closed

Example using yaml file throws error #6

Relequestual opened this issue Jul 27, 2023 · 3 comments

Comments

@Relequestual
Copy link

My action file is action.yaml as opposed to action.yml.

I do the following as per the readme here...

npx convert-action dist/index.js my-subfolder/action.yml

This throws.

Error: Unable to parse YAML file [dist/index.js]: end of the stream or a document separator is expected

It seems to be trying to parse the js file as YAML.

Am I doing something wrong here or should this work?

@mheap
Copy link
Owner

mheap commented Jul 28, 2023

Reading the code it looks like I got the args in reverse. Try the following:

npx convert-action my-subfolder/action.yml dist/index.js

@Relequestual
Copy link
Author

Relequestual commented Jul 31, 2023

Ah, good to know, thanks.
It turns out, I'm using a compound action to use node.js v18, so this action is actually not helpful for my use anyway.

Feel free to close when you've updated the readme =]

@mheap
Copy link
Owner

mheap commented Sep 4, 2023

This is resolved in #7

@mheap mheap closed this as completed Sep 4, 2023
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

2 participants