Open Nedlinin opened 4 years ago
Has it ever worked in your action runner before?
Does your repo have more than 1 commit? Is it a shallow clone? This formatter requires at least 2 commits in the history right now. if the head commit doesn't exists we fall back to the previous commit.
https://github.com/hipstersmoothie/create-check/blob/master/src/index.ts#L110
If you want to make a PR to that repo with better fallback logic I'll accept it. Might be a few days until I can get to it
@hipstersmoothie : This is the very first time trying to run it.
I'm using
` steps:
Which appears to do a shallow clone by default. Changed it to depth 0 to enable full clone and it appears to have gotten rid of the error but no actual check annotations are applied.
I'm also hitting this issue running on Jenkins, I'm not sure in which conditions the previous commit fallback is needed, but could one option be to move this line:
const PRE_HEAD = (await execa('git', ['rev-parse', 'HEAD^1'])).stdout;
into the catch
-block where it is used?
This is failing to run on my selfhosted Linux Github action runner.