Trouble Shooting

[Github Actions] the process '/usr/bin/git' failed with exit code 128 해결

SH_Roh 2023. 2. 21. 22:50
반응형

Github Actions로 CI/CD를 구축하면서 paths filter를 사용하려던 중 the process '/usr/bin/git' failed with exit code 128라는 오류를 만났다.

fatal: not a git repository (or any of the parent directories): .git
Error: The process '/usr/bin/git' failed with exit code 128

오류 메시지를 읽어보니 not a git repository라는 부분이 있어서 작성했던 yml 파일을 다시 보니 checkout보다 paths filter를 먼저 써줘서 생기는 오류였다.

checkout을 가장 먼저 해주기

 

checkout을 통해 repository로부터 CI 서버로 먼저 코드를 내려받은 후에 다른 action들을 사용해주면 된다 :)

 

반응형