You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using self-hosted runners and the checkout action. Recently we had a situation where code in one branch managed to break the builds of other branches.
This caused a git state that Post Check out code did not manage to recover from.
When a new job later started on the same runner and that job needed files outside of project1/src it failed.
I think this case should be handled by the checkout action so that after the Post Check out code step the state in git is the same as after the Check out code step above.
The text was updated successfully, but these errors were encountered:
The same issue happens when using the sparse-checkout option. For example, I have a job with the following step:
- name: Fetch Sourceuses: actions/checkout@v3with:
sparse-checkout: | dirA dirB
This works fine, however, I have another job that does not use sparse-checkout like this:
- name: Fetch Sourceuses: actions/checkout@v3
If this second job re-uses the same work folder on my runner server, it will not checkout the full repository because the previous job had it set to sparse-checkout. It would be great if the Post Fetch Source step would reset the sparse-checkout setting for subsequent jobs that reuse the same work folder.
We are using self-hosted runners and the checkout action. Recently we had a situation where code in one branch managed to break the builds of other branches.
What was done was to add the second step below.
This caused a git state that
Post Check out code
did not manage to recover from.When a new job later started on the same runner and that job needed files outside of
project1/src
it failed.I think this case should be handled by the checkout action so that after the
Post Check out code
step the state in git is the same as after theCheck out code
step above.The text was updated successfully, but these errors were encountered: