-
Notifications
You must be signed in to change notification settings - Fork 12
Update README for Run MATLAB Command #3
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
Conversation
jwpereira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this.. is a real doc 😁
Thanks, @mw-hrastega! 😄
README.md
Outdated
| ``` | ||
| ## Run MATLAB Command | ||
| When you define your workflow in the `.github/workflows` directory of your repositoy, you can specify the **Run MATLAB Command** action using the `run-command` key. The action requires an input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| When you define your workflow in the `.github/workflows` directory of your repositoy, you can specify the **Run MATLAB Command** action using the `run-command` key. The action requires an input. | |
| When you define your workflow in the `.github/workflows` directory of your repository, you can specify the **Run MATLAB Command** action using the `run-command` key. The action requires an input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
README.md
Outdated
| ``` | ||
| ## Run MATLAB Command | ||
| When you define your workflow in the `.github/workflows` directory of your repositoy, you can specify the **Run MATLAB Command** action using the `run-command` key. The action requires an input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In practice, I don't think users will be able to call run-command without qualifying it with our org and a version 🤔
They'd have to use matlab-actions/run-command@v0 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about the updated version?
mcafaro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions
README.md
Outdated
| [`error`](https://www.mathworks.com/help/matlab/ref/assert.html) functions in | ||
| the command to ensure that builds fail when necessary. When you use this task, | ||
| all of the required files must be on the MATLAB search path. | ||
| - If you want to use a self-hosted runner, you must set up a computer with MATLAB (R2013b or later) as your runner. The action uses the first MATLAB version on the runner's path. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The action uses the first MATLAB version on the runner's system path."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
README.md
Outdated
| - name: Run script | ||
| uses: matlab-actions/run-command@v0 | ||
| with: | ||
| command: 'myscript' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to consider not showing the command wrapped in single quotes. I believe these quotes are generally unneeded and a user may want to use single quotes in their actual MATLAB command, in which case they would need to learn how to properly escape them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Thanks.
README.md
Outdated
| uses: matlab-actions/run-command@v0 | ||
| with: | ||
| command: disp('hello world') | ||
| command: 'results = runtests, assertSuccess(results);' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, perhaps lose the quotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
README.md
Outdated
|
|
||
| Input | Description | ||
| ------------------------- | --------------- | ||
| `command` | (Required) Script, function, or statement to execute. If the value of `command` is the name of a MATLAB script or function, do not specify the file extension. If you specify more than one MATLAB command, use a comma or semicolon to separate the commands.<br/>**Example:** `'myscript'`<br/>**Example:** `'results = runtests, assertSuccess(results);'` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quotes...
Updated the text and examples. When reviewing the examples, please pay attention to the text in the YAML scripts.