-
Notifications
You must be signed in to change notification settings - Fork 38
Multiple inputs #1
Comments
Hi @fortmarek. Could you achieve the same effect by running the action twice with two different inputs? As far as I can tell, the work done here should keep intact existing files that aren't overwritten: github-wiki-publish-action/entrypoint.sh Lines 53 to 57 in a87db85
|
That, indeed, works, unfortunately, it is not a 100 % working solution since it overwrites |
Wouldn't you have the same problem if it were possible to specify multiple inputs, though? |
Running
it'd work just fine - as opposed to running what now boils down to Of course there is a question if you want to introduce such a workaround, but as a lot of Swift libraries do have multiple components, it might make sense to do so. |
@fortmarek To clarify, this GitHub action only uploads contents to a project's GitHub wiki repository. Although |
Right, sorry, I got sidetracked a little bit, this is really more about swift-doc itself. There would have to be an intermediate script that would be triggered from Which is a little bit complicated, unfortunately. |
@fortmarek Sorry, but I'm still not 100% clear about what problem you're facing. Would you mind taking a step back to explain what you're trying to accomplish? |
Sure, sorry for making not myself clear. We have a library called
Locally, I can run |
@fortmarek Thanks for clarifying. I just filed SwiftDocOrg/swift-doc#19 to track the issue about array arguments. Projects with multiple modules is absolutely something we want to support, but it may take some time to implement. In the meantime, though, you should be able to achieve what you're describing by running the swift-doc GitHub action twice with different input arguments? |
Yes, we recognize it as a known limitation and went with the solution you suggested and it works fine for now 🙂 thanks for the help (and the patience 😄 ). Closing as the new issue is a more appropriate place. |
Hi!
I was wondering if there is a way to define multiple directories as
inputs
parameter; unfortunately, it seems like Github actions do not support arrays, I have tried this approach, but for obvious reasons that did not work either.One workaround (as mentioned here) would be to parse
inputs
with space as a delimiter. If that seems like worth the effort, I can try to have a look.The text was updated successfully, but these errors were encountered: