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

Couldn't Find Repository in GitHub Actions #232

Closed
stevenvachon opened this issue Sep 20, 2019 · 6 comments
Closed

Couldn't Find Repository in GitHub Actions #232

stevenvachon opened this issue Sep 20, 2019 · 6 comments

Comments

@stevenvachon
Copy link

I just switched from Travis CI to GitHub Actions (beta) and it's failing. Nothing else in the repo was changed.

This seems very similar to #231.

I tried adding COVERALLS_REPO_TOKEN env var, per #166, which fixed it. Should this be necessary, though?

@nickmerwin
Copy link
Owner

Hi @stevenvachon can you link me to your repo? Or, if it's private, paste your workflow.yml file here.

@XhmikosR
Copy link
Contributor

Personally I notice the branch name doesn't show up after switching to GitHub Actions. I do have COVERALLS_REPO_TOKEN

https://coveralls.io/github/validator/grunt-html

@nickmerwin
Copy link
Owner

Hi @XhmikosRand @stevenvachon it would be best to switch to the official Action:

https://github.com/marketplace/actions/coveralls-github-action

Otherwise, you can fix the missing branch by explicitly setting this env var in the step:

COVERALLS_GIT_BRANCH: $GITHUB_REF

@XhmikosR
Copy link
Contributor

XhmikosR commented Sep 28, 2019

To clarify, the correct is this:

env:
  COVERALLS_REPO_TOKEN: "${{ secrets.COVERALLS_REPO_TOKEN }}"
  COVERALLS_GIT_BRANCH: "${{ github.ref }}"

But this results in refs/head/branch, not just branch.

As for the GitHub Action, I wasn't even aware there was one. I would switch to it, but I don't like the extra comments, which from the docs, I can't see any way to disable them.

@stevenvachon
Copy link
Author

Do we no longer need to npm install coveralls?

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