-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Allow to specify configuration argument as input #10
Comments
Parameters like While we could add support for the most commonly used arguments (like Ideally, we'd define an input parameter called steps:
- name: Run the Cake script
uses: cake-contrib/cake-action@v1
with:
scriptArguments:
- configuration: Release
- someOtherParameter: value
- whyNotASwitch: true Sounds good right? But here's the problem: actions don't support sequences as inputs, or anything other than The current workaround is to define a custom format for lists and parse that manually. Some use embedded JSON, while others simply define each input in a new line. I'm looking into both solutions while watching actions/toolkit#184 closely. |
The |
There is a pull request that will alow for that :) |
Until it's possible to parse input arguments as lists, you can pass the steps:
- name: Run the Cake script
uses: cake-build/cake-action@master
with:
arguments: |
configuration: Release |
Resolved in 49c1c65. |
It will be best practice to insert configration argument as input.
Example:
The text was updated successfully, but these errors were encountered: