-
Notifications
You must be signed in to change notification settings - Fork 36
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
check-against-readme always looks for the project-level README #16
Comments
Weird, the code is pretty straightforward here https://github.com/bahmutov/check-code-coverage/blob/master/bin/set-gh-status.js#L101 Is your action written like this?
Is this a local pull request or a request from a forked repository? |
@bahmutov so this was more a matter of not specifying the directory I was in, this now works: - name: Ensure coverage has not dropped 📈
run: cd clients/html && npx set-gh-status
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} However, if I try to check this against the README file, it looks for the root-level README. Is there a way we could look for a readme file in the directory that |
Sure, I would be open to a pull request to add this
…Sent from my iPhone
On Jul 1, 2020, at 13:23, Mark Goho ***@***.***> wrote:
@bahmutov so this was more a matter of not specifying the directory I was in, this now works:
- name: Ensure coverage has not dropped 📈
run: cd clients/html && npx set-gh-status
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
However, if I try to check this against the README file, it looks for the root-level README. Is there a way we could look for a readme file in the directory that set-gh-status is being run in?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
#17 open for this issue |
The token is definitely being passed in, but for whatever reason isn't being found.
It looks like this package assumes everything is at the root folder. After adding
cd clients/html &&
to the npx line, it works, but then it's looking for the badge at the root-levelREADME
which doesn't have a badge.The text was updated successfully, but these errors were encountered: