-
I’m attempting to send code coverage to code climate using a github action: https://github.com/ksylvest/tights/blob/master/.github/workflows/test.yml#L17-L25
This works - but seems to be missing a “GIT_BRANCH” variable: Does anyone have experience with configuring this? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi @ksylvest., Thanks for being here and apologies for the delay, we’ve looked internally to see if there were any setup examples with code climate and have not found any workflows to share, I wonder if reaching out to them directly might help? https://github.com/codeclimate |
Beta Was this translation helpful? Give feedback.
-
I’m afraid that we don’t set the
|
Beta Was this translation helpful? Give feedback.
-
Hi there, My steps look like
Any ideas why the Thanks. |
Beta Was this translation helpful? Give feedback.
I’m afraid that we don’t set the
GIT_BRANCH
environment variable. We do, however, set theGITHUB_REF
variable, which should be able to be used. You should be able to remove the leadingrefs/heads/
prefix from that variable and set it to GIT_BRANCH. For example: