Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Uploads from Github Actions are Untitled #177

Open
StephanBijzitter opened this issue May 6, 2020 · 1 comment
Open

Uploads from Github Actions are Untitled #177

StephanBijzitter opened this issue May 6, 2020 · 1 comment

Comments

@StephanBijzitter
Copy link

Searched for this issue, found this as the first result on Google:
data61/anonlink#224

image

Github Actions is listed as supported, so it was quite confusing to see "Untitled" builds in my uploads. The documentation also didn't help very much, but with the issue I linked above, I found out I was not the only one :-)

Would it be an idea to add command-line arguments to set the title, build url and whatever other info can be displayed? With that, any new CI that is not yet fully supported can rely on those until support is added.

@NoNameProvided
Copy link

Github Action is not currently detected by codevov package as CI automatically, moreover the way branches are checked out by Github Actions the upload will always indicate that it come from the master branch. To fix these currently you can run the following script to upload:

codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/}  --build "Github Actions"

Notes:

  • you may not need to use the -f flag if your coverage file automatically detected
  • I have never used the --build flag, in production you probably want to add some unique so attaching the build number (GITHUB_RUN_NUMBER) to it is not a bad idea

@thomasrockhu thomasrockhu self-assigned this Nov 5, 2020
@thomasrockhu thomasrockhu removed their assignment Jul 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants