Open
Description
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.
steps:
- name: Check out code
uses: actions/checkout@v2
with:
lfs: true
- name: Remove non-dependencies
run: |
git sparse-checkout init --cone
git sparse-checkout set project1/src
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.
Metadata
Metadata
Assignees
Labels
No labels