casid / jte

Secure and speedy templates for Java and Kotlin.
https://jte.gg
Apache License 2.0
819 stars 59 forks source link

ci: Do not run code coverage on forks #287

Closed marcospereira closed 1 year ago

marcospereira commented 1 year ago

What?

Code coverage job will fail on forks since they cannot upload results to Codecov. This adds a condition to control if the job should run or not. For more details see GitHub Actions docs:

https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution

casid commented 1 year ago

Thanks for the PR, that's very useful!