Open alrf opened 3 years ago
We get a similar issue:
Get current git ref /usr/bin/git branch --show-current fatal: not a git repository (or any of the parent directories): .git Error: The process '/usr/bin/git' failed with exit code 128
@alrf: Thanks for reporting the issue. I will use the same workaround as they used in the checkout
action.
@balazsorban44: The error you get is not related to this issue. You are using paths-filter
in a workflow triggered by push
event. In this case, you have to use the checkout@v2
step before paths-filter
. Without checkout
it works only for workflows triggered by a pull request event.
We're seeing the same show-current
error on certain buster and centos images using checkout@v3
https://github.com/AgnostiqHQ/covalent/runs/7530228427
Pipeline fails with:
https://github.com/dorny/paths-filter/blob/78ab00f87740f82aec8ed8826eb4c3c851044126/src/git.ts#L168
git version 2.20.1
is used.The same issue as for
actions/checkout
: https://github.com/actions/checkout/issues/121