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

2023. 2. 21. 22:50·Trouble Shooting
반응형

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들을 사용해주면 된다 :)

 

반응형

'Trouble Shooting' 카테고리의 다른 글

[passport] req#logout requires a callback function 오류 해결  (0) 2023.02.28
[Next.js] Component selectors can only be used in conjunction with @emotion/babel-plugin 해결  (0) 2023.02.23
[Nginx] 페이지 새로고침 시 Page Not Found 오류 해결  (1) 2023.02.07
[Netlify] 페이지 새로고침 시 Page Not Found 오류 해결  (0) 2023.02.06
inefficient regular expression complexity in nth-check  (0) 2023.01.26
'Trouble Shooting' 카테고리의 다른 글
  • [passport] req#logout requires a callback function 오류 해결
  • [Next.js] Component selectors can only be used in conjunction with @emotion/babel-plugin 해결
  • [Nginx] 페이지 새로고침 시 Page Not Found 오류 해결
  • [Netlify] 페이지 새로고침 시 Page Not Found 오류 해결
SH_Roh
SH_Roh
  • SH_Roh
    혼자공부끄적끄적
    SH_Roh
  • 전체
    오늘
    어제
    • 분류 전체보기 (159)
      • FE (39)
        • HTML, CSS (3)
        • Javascript (17)
        • React (11)
        • Next.js (4)
      • Network (1)
      • DevOps (4)
      • Git (1)
      • Trouble Shooting (24)
      • Algorithm (41)
        • Python (2)
        • Data Structure, Algorithm (7)
        • Problem Solving (31)
      • Education (23)
        • Elice AI Track (4)
        • Wanted Pre-Onboarding FE Co.. (19)
      • TIL (25)
      • Etc. (1)
        • 회고 (1)
        • 그냥저냥 (0)
  • 링크

    • Github
  • 인기 글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
SH_Roh
[Github Actions] the process '/usr/bin/git' failed with exit code 128 해결
상단으로

티스토리툴바