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

Github action workflow returns: Upload error: Couldn't find a repository matching this job. #1613

Closed
Ismoh opened this issue Feb 1, 2022 · 7 comments

Comments

@Ismoh
Copy link

Ismoh commented Feb 1, 2022

coverallsapp/github-action#109

@afinetooth
Copy link
Collaborator

afinetooth commented Feb 2, 2022

Hi @Ismoh.

This error occurs when the repo identifier in your CI config is missing or incorrect.

Normally, the repo identifier is your coveralls repo token, assigned by https://coveralls.io and found on your repo page (or start page) and settings page for your repo at https://coveralls.io.

However, the Coveralls Github Action breaks this pattern and uses the repo's github token, ${{ secrets.GITHUB_TOKEN }}, to identify your repo to the Coveralls API.

Sometimes this is missed when users switch an existing project to Github Actions for CI. Sometimes the issue is that customers are using a different integration with Github Actions (instead of using the Coveralls Github Action), but are sending the value github for the parameter, service_name (described here), which is reserved by the Coveralls Github Action.

I'll need the Coveralls repo URL for your project, and to see your config yaml to best help you resolve the issue.

If that's something you don't wish to make public, please email us at [email protected] and reference this issue.

@afinetooth
Copy link
Collaborator

afinetooth commented Feb 2, 2022

@Ismoh whoops, apologies. I see the issue you referenced contains your project details. Looking at it now, please give me a few moments...

@afinetooth
Copy link
Collaborator

afinetooth commented Feb 2, 2022

@Ismoh ok, now referring to coverallsapp/github-action#109:

I see you are using the Coveralls Github Action, which is fine. You'll just want to remove the line, repo_token: ${{ secrets.coveralls_repo_token }}, from your config yaml.

Also, just to maintain sanity, why not change this line to github-token: ${{ secrets.GITHUB_TOKEN }} in strict adherence to the Coveralls Github Action usage instructions.

As far as I can tell, from what I see, that should work.

If not, here's how to enable verbose mode with the Coveralls Github Action:

The Coveralls Github Action uses the node-coveralls integration under-the-hood, so add this environment variable to your config yaml somewhere so it's available to your coveralls step(s):
NODE_COVERALLS_DEBUG=1

If you continue having issues, please share your verbose build log.

@Ismoh
Copy link
Author

Ismoh commented Feb 2, 2022

@afinetooth I really appreciate your detailed help!
This is awesome! It is working since yesterday, but your explanations and referring to docs is really good, because it's new to me and I didn't understand everything fully!
Now I do!
Thank you very much!

I think there won't be any problem anymore, but if so, I'll would reopen the ticket!

@Ismoh Ismoh closed this as completed Feb 2, 2022
@afinetooth
Copy link
Collaborator

@Ismoh great! Glad to hear it.

@Ismoh
Copy link
Author

Ismoh commented Feb 2, 2022

Just for reference and for future request from other ppl:
moteus/luacov-coveralls#29

@afinetooth
Copy link
Collaborator

That's great, thank you.

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

No branches or pull requests

2 participants