Skip to content

Conversation

@mw-hrastega
Copy link
Member

Updated the text and examples. When reviewing the examples, please pay attention to the text in the YAML scripts.

Copy link
Contributor

@jwpereira jwpereira left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Copy link
Member Author

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.
Copy link
Contributor

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 🤔

Copy link
Member Author

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?

Copy link
Member

@mcafaro mcafaro left a 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.
Copy link
Member

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."

Copy link
Member Author

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'
Copy link
Member

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.

Copy link
Member Author

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);'
Copy link
Member

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.

Copy link
Member Author

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);'`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quotes...

@jwpereira jwpereira merged commit 6e0fdcd into main Dec 22, 2020
@mw-hrastega mw-hrastega deleted the run-command-doc branch February 26, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants