Skip to content

Conversation

@mw-hrastega
Copy link
Member

No description provided.

README.md Outdated
MATLAB exits with exit code 0 if the specified script, function, or statement executes successfully without error. Otherwise, MATLAB terminates with a nonzero exit code, which causes the build to fail. To ensure that the build fails in certain conditions, use the [`assert`](https://www.mathworks.com/help/matlab/ref/assert.html) or [`error`](https://www.mathworks.com/help/matlab/ref/error.html) functions.

When you use this action, all of the required files must be on the MATLAB search path.
When you use this action, all of the required files must be on the MATLAB search path. If your script or function is located in a folder in the root of your repository, you can use the [`addpath`](https://www.mathworks.com/help/matlab/ref/addpath.html), [`cd`](https://www.mathworks.com/help/matlab/ref/cd.html), or [`run`](https://www.mathworks.com/help/matlab/ref/run.html) functions to ensure that the folder is on the path when the script or function is invoked. For example, to run `myscript.m` in a folder `myfolder` in the root of the repository, you can specify `command` like this:
Copy link
Member

@mcafaro mcafaro Apr 13, 2021

Choose a reason for hiding this comment

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

I first read this as "If your script or function is located in the root folder..."

Would it be clearer to say "If your script or function is not located in the root folder of your repository, ..." ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, I think this conveys the message more clearly. Updated the paragraph.

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.

I just realized I never approved this even though I absolutely have 😅
My b; 🚢

@mw-hrastega mw-hrastega merged commit ea9fb01 into main May 14, 2021
@mw-hrastega mw-hrastega deleted the mw-hrastega-patch-1 branch May 14, 2021 22:07
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