Using container checkout doesn't checkout hidden files #26978
-
I have the following job set up
it’s not fully complete because I have two issues here (and I’m probably not understanding things right). When I get to the last step it fails because none of my hidden files (except .gitattributes and .gitignore) are present in the checkout phase. But when I had wordpress as a service and not a container, everything was checked out correctly. Another thing that confuses me is, if I’m in a container (in my case WordPress one), shouldn’t I see all the WordPress files when I do Or are the steps executed on the GH host machine, and the container is started, but the only way to access it would be to exec into it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @dingo-d , Please use ‘v1’ for checkout action. When container is defined, your job steps are executed on the docker container, which is different with services(steps executed on github runner). It seems checkout v2 action excludes the files which start with dot, it’s recommended to raise a query on the list for confirmation. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Thanks! I’ve added an issue on the repo, in the meantime I’ll try with v1. |
Beta Was this translation helpful? Give feedback.
Hi @dingo-d ,
Please use ‘v1’ for checkout action.
When container is defined, your job steps are executed on the docker container, which is different with services(steps executed on github runner).
It seems checkout v2 action excludes the files which start with dot, it’s recommended to raise a query on the list for confirmation.
Thanks.