-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Action must fail when options can't be honored due to downloading from API #1879
Comments
Letting the action fail might be a bit harsh for backwards compatibility reasons, how about a warning message? # The repository will be downloaded using the GitHub REST API
# To create a local Git repository instead, add Git 2.18 or higher to the PATH
! WARNING: Some options are not available when using the Github REST API |
|
I think it's quite common to check logs when creating or adjusting a workflow. However, once a workflow is up and running, I agree.
Let's assume this really would lead to crashes in most cases, how many users are relying on the current behavior because they build workarounds or adjusted their workflows accodingly? My feeling is that such a breaking change is too risky and may even lead to a net negative impact in the short/mid term. Some ideas for further discussion:
|
adding on exit flag defaulting to |
It seems action can fallback to API download if Git client is missing.
However:
.git
directory is missing, and it's not a Git repositoryPossible invalid options in such case:
filter
sparse-checkout
sparse-checkout-cone-mode
fetch-depth
fetch-tags
submodules
The text was updated successfully, but these errors were encountered: