Skip to content

Commit 52852a3

Browse files
authored
Merge pull request #10 from matlab-actions/ui-text
Improve UI text and comments per feedback
2 parents 26a7075 + bdeab94 commit 52852a3

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

public/assets/button.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

public/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2>Generate a GitHub Actions Workflow for MATLAB</h2>
8383
<div
8484
class="form-check form-switch form-switch-md d-flex justify-content-between align-items-center"
8585
data-bs-toggle="tooltip"
86-
title="Enable to license MATLAB with a batch token if your repository is private or uses transformation products, such as MATLAB Coder and MATLAB Compiler.">
86+
title="Use a batch token to license MATLAB if your repository is private or uses transformation products.">
8787
<div class="d-flex align-items-center">
8888
<input
8989
class="form-check-input"
@@ -114,7 +114,7 @@ <h2>Generate a GitHub Actions Workflow for MATLAB</h2>
114114
<div
115115
class="form-check form-switch form-switch-md d-flex justify-content-between align-items-center"
116116
data-bs-toggle="tooltip"
117-
title="Enable to run MATLAB code that requires a display on GitHub-hosted Linux runners, such as tests that interact with an app UI.">
117+
title="Set up a virtual display on a GitHub-hosted Linux runner to run MATLAB code that requires GUI access.">
118118
<div class="d-flex align-items-center">
119119
<input
120120
class="form-check-input"
@@ -147,7 +147,7 @@ <h2>Generate a GitHub Actions Workflow for MATLAB</h2>
147147
<div
148148
class="form-check form-switch form-switch-md d-flex justify-content-between align-items-center mb-0"
149149
data-bs-toggle="tooltip"
150-
title="Enable to define a matrix of jobs that run your MATLAB code across Linux, Windows, and macOS.">
150+
title="Define a matrix of jobs to run across Linux, Windows, and macOS platforms.">
151151
<div class="d-flex align-items-center">
152152
<input
153153
class="form-check-input"

public/scripts/workflow.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,7 @@ function generateWorkflow({
111111
uses: "matlab-actions/setup-matlab@v2",
112112
with: {
113113
release: "latest",
114-
products:
115-
"Simulink Deep_Learning_Toolbox Computer_Vision_Toolbox",
114+
products: "Simulink Deep_Learning_Toolbox",
116115
cache: "true",
117116
},
118117
},
@@ -130,20 +129,21 @@ function generateWorkflow({
130129
noCompatMode: true,
131130
});
132131
yaml =
133-
`# This workflow was generated by ${siteUrl}\n\n` +
132+
`# This workflow was generated using the GitHub Actions Workflow Generator for MATLAB.\n` +
133+
`# ${siteUrl}\n\n` +
134134
yaml
135-
.replace(
136-
/^(\s*)products:/m,
137-
"$1# Products to set up in addition to MATLAB\n" +
138-
"$1# See https://github.com/matlab-actions/setup-matlab/?tab=readme-ov-file#set-up-matlab\n" +
139-
"$1# products:",
140-
) // comment out products and add comment above
141135
.replace(
142136
/^(\s*)(MLM_LICENSE_TOKEN: .*)/m,
143-
"$1# You must set the MLM_LICENSE_TOKEN secret in your repository settings\n" +
144-
"$1# See https://github.com/matlab-actions/setup-matlab/?tab=readme-ov-file#use-matlab-batch-licensing-token\n" +
137+
"$1# To use a batch token in this workflow, first create an MLM_LICENSE_TOKEN secret in your repository settings.\n" +
138+
"$1# https://github.com/matlab-actions/setup-matlab/#use-matlab-batch-licensing-token\n" +
145139
"$1$2",
146140
) // comment above MLM_LICENSE_TOKEN
141+
.replace(
142+
/^(\s*)products:/m,
143+
"$1# Set up additional products using the `products` input.\n" +
144+
"$1# https://github.com/matlab-actions/setup-matlab/#set-up-matlab\n" +
145+
"$1# products:",
146+
) // comment out products and add comment above
147147
.replace(/^'on':/m, "on:") // unquote 'on'
148148
.replace(/'true'/g, "true") // unquote 'true'
149149
.replace(/branches:\n\s*-\s*(\w+)/g, "branches: [$1]") // inline branches

0 commit comments

Comments
 (0)