【问题标题】:GitHub Actions - .git folder gone when job is running as containerGitHub Actions - .git folder gone when job is running as container
【发布时间】:2022-12-19 10:37:12
【问题描述】:

When I run a workflow job in GitHub actions as acontainer, the .git folder is missing. There is a checkout action, of course. This prevents me from running git commands as part of the job. Why is that? Everything else is being mounted to the container, so why not the .git folder too?

When running the job on the runner itself, the .git folder is there as expected

【问题讨论】:

    标签: github containers github-actions


    【解决方案1】:

    the folder is not missing its hidden. if you type whats below it should list directories and files in the .github folder

    ls /home/runner/work/yourproject/yourproject/.github
    

    【讨论】:

      猜你喜欢
      • 2022-12-02
      • 2022-12-02
      • 2022-12-19
      • 1970-01-01
      • 2021-08-31
      • 2020-05-30
      • 1970-01-01
      • 2023-02-14
      • 2021-06-19
      相关资源
      最近更新 更多