-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[BUG] actions/checkout initialize repo with submodules #9
Comments
Thanks for reporting this issue. As we tried to include a maximum of steps inside the action, I guess the best option is to add another input "submodules". It could a boolean, not required and false by default. Will work on this asap. Thanks again |
I'd be interested to know why you'd use git submodules in a DDEV add-on, please do say! |
i'am extending bats test with custom .sh files and it's looks like this https://bats-core.readthedocs.io/en/stable/faq.html#how-can-i-use-helper-libraries-like-bats-assert i added bats-assert and it's easy for me to loading directly from repository, i noticing i have some issue when i load this custom .sh files from homebrew paths without included in addon repository |
It's a lot easier to add those during the test setup, as is done in https://github.com/ddev/ddev-platformsh/blob/143a967695ad5cceaa5b3f2b285c8a1a2d34396c/.github/workflows/tests.yml#L51-L56 for example. It's an interesting approach though! I've been a submodule skeptic for many years after seeing people fail so often with them. But... git has improved its handling of submodules in those intervening years. |
I think we should probably add the helpers into this test! How about a PR to do that? |
I just created a PR #12 with a new I tested it with Kibana "submodules" checkout here https://github.com/julienloizelet/ddev-add-on-test/actions/runs/5920563653/job/16052000222 My first idea was to add a What do you think ? Thanks |
Hi @JanoPL , I just published a I think you could try with the following
Please let me know if it works for you. Thanks |
Hi @julienloizelet thank you, it's work well. Tested on version |
Glad to hear that, I guess I can close this one. Thanks |
@JanoPL wrt #9 (comment) please take a look at |
Hi,
There is a problem with repositories that have
git submodules
initialization in action/checkout.Currently, when the workflow initializes checkout with the given parameters, this action overwrites the previous configuration and initializes the repository from scratch with the given parameters from the action, or that’s just what it looks like.
In my opinion, this step should be outside of action or additional options should be added to github.inputs that are passed to checkout. What do you think about that
In action.yaml L:62 https://github.com/ddev/github-action-add-on-test/blob/main/action.yaml#L62
workflow to reproduce
full logs:
https://pipelines.actions.githubusercontent.com/serviceHosts/e9c573fb-2c8d-4244-a83a-2e837d1f8185/_apis/pipelines/1/runs/414/signedlogcontent/2?urlExpires=2023-08-20T10%3A24%3A59.3735152Z&urlSigningMethod=HMACV1&urlSignature=cAsiZQWS58cFyjCGkIzYRo8GTD%2B%2BK6yuqcXW1%2BNt%2Bu0%3D
workflow that I am testing this action
https://github.com/JanoPL/ddev-kibana/actions/runs/5916437897/workflow
The text was updated successfully, but these errors were encountered: