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
There's a bug, either in documentation or in the checkout action, when you are using checkout in both a workflow and a composite action called by the workflow.
The behavior I was seeing does not appear to be documented anywhere. I believe either the readme should call out this behavior, or better, a warning should be emitted in the log. Or the behavior should change. Once I figured out what was happening, this was easy enough to work around, but this behavior seems to be undocumented.
One of the two things seems to be happening:
if a parent workflow already has a checkout, it syncs the repo using the existing settings, regardless of what you provided (I believe this is what is happening)
checkout performs a no-op if the destination folder already exists
Here's a simplified version of what I was doing (mostly was the result of converting a reusable workflow into a composite action):
There's a bug, either in documentation or in the checkout action, when you are using checkout in both a workflow and a composite action called by the workflow.
The behavior I was seeing does not appear to be documented anywhere. I believe either the readme should call out this behavior, or better, a warning should be emitted in the log. Or the behavior should change. Once I figured out what was happening, this was easy enough to work around, but this behavior seems to be undocumented.
One of the two things seems to be happening:
Here's a simplified version of what I was doing (mostly was the result of converting a reusable workflow into a composite action):
Workflow file:
Composite action:
The output of
ls
clearly was showing a sparse checkout, even though the call to the checkout action did not specify sparse.The log from the composite action:
The solution to fixing this was removing the 'sparse' from the parent workflow (and then optionally removing the checkout from the composite action).
The text was updated successfully, but these errors were encountered: