-
-
Notifications
You must be signed in to change notification settings - Fork 25
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: ENOENT: no such file or directory #6
Comments
@KilianKae Thanks for raising the issue and sorry for the delayed response 🙌 |
I am getting similar error. Warning: Unexpected input(s) 'markdown', valid inputs are ['app_id', 'app_secret', 'access_token', 'markdown_file', 'base_url', 'post_url', 'post_status', 'post_license']
Run infraway/[email protected]
with:
post_status: draft
post_license: all-rights-reserved
Error: ENOENT: no such file or directory, open ''
name: First Post
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Read the post
id: post
run: echo "::set-output name=data::$(cat ./content/post.md)"
- uses: infraway/[email protected]
with:
access_token: ${{ secrets.MEDIUM_ACCESS_TOKEN }}
markdown: ${{ steps.post.outputs.data }}
base_url: https://medium.com/@Inconspicuous10 Thanks for your help in advance :) |
I hate to add to the issue, but I can confirm I am having the same issues when pushing from git bash. It is looking for the markdown file that definitely exists in the location. I will not post my debugging information as it is a duplicate of the above, with only the directory and base url changed. |
Thanks for reporting @SecTestAnnaQuinn! Could you please share your GitHub workflow config please? |
I was being dumb. This is my first experiment with github workflows. After some investigations with tree (thank you for that), I discovered there were no files present in my runner's directory. After a few hours of troubleshooting to copy over the files, I discovered that it was because I wasn't using checkout. Your action worked perfectly after, I am just inexperienced with this. Thank you for the help and the action! |
Still, the documentation at the least on github actions should be updated on usage. If the docs are wrong, then it doesn't matter if the user of an app is "dumb" - no offense @SecTestAnnaQuinn. Simply put, missing docs that don't mention to add a checkout step is the issue. That's all. Docs need to be fixed. FYI, I ran into this exact same issue today Literally the only step missing from the docs is:
It doesn't seem too hard to update the docs to add that in there. My two cents. |
First of all, thank you for maintaining this repo!
We have the following issue:
We receive this error:
Error: ENOENT: no such file or directory, open 'blog/test.md'
With this yaml:
Any ideas?
The text was updated successfully, but these errors were encountered: