Closed kochax closed 1 year ago
When you provide the workspace_path parameter, attaching of workspace is a step before checkout, so in my case checkout failed with the message:
workspace_path
"Directory (/home/circleci/project) you are trying to checkout to is not empty and not a git repository"
Persist part is done in the previous step:
and workspace path is defined with: workspace_path: .circleci
workspace_path: .circleci
https://github.com/CircleCI-Public/path-filtering-orb/blob/main/src/jobs/filter.yml
Attach workspace step should be after checkout step
I can submit PR for this
@sulami Hi Robin How are you? Could you please take a look on this? This is pretty much deal breaker for using this orb...
The fix was merged, so I'm closing this
Orb version: 0.1.0
What happened:
When you provide the
workspace_path
parameter, attaching of workspace is a step before checkout, so in my case checkout failed with the message:"Directory (/home/circleci/project) you are trying to checkout to is not empty and not a git repository"
Persist part is done in the previous step:
and workspace path is defined with:
workspace_path: .circleci
Expected behavior:
https://github.com/CircleCI-Public/path-filtering-orb/blob/main/src/jobs/filter.yml
Attach workspace step should be after checkout step
Additional Information:
I can submit PR for this