Skip to content

Commit ae88a1b

Browse files
author
Martin Lopes
authored
Update workflow-commands-for-github-actions.md
1 parent fbcc8f4 commit ae88a1b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

content/actions/using-workflows/workflow-commands-for-github-actions.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ The following table shows which toolkit functions are available within a workflo
122122

123123
Sets an action's output parameter.
124124

125-
```plaintext{:copy}
125+
```{:copy}
126126
::set-output name={name}::{value}
127127
```
128128

@@ -150,7 +150,7 @@ Write-Output "::set-output name=action_fruit::strawberry"
150150

151151
Prints a debug message to the log. You must create a secret named `ACTIONS_STEP_DEBUG` with the value `true` to see the debug messages set by this command in the log. For more information, see "[Enabling debug logging](/actions/managing-workflow-runs/enabling-debug-logging)."
152152

153-
```plaintext{:copy}
153+
```{:copy}
154154
::debug::{message}
155155
```
156156

@@ -178,7 +178,7 @@ Write-Output "::debug::Set the Octocat variable"
178178

179179
Creates a notice message and prints the message to the log. {% data reusables.actions.message-annotation-explanation %}
180180

181-
```plaintext{:copy}
181+
```{:copy}
182182
::notice file={name},line={line},endLine={endLine},title={title}::{message}
183183
```
184184

@@ -207,7 +207,7 @@ Write-Output "::notice file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
207207

208208
Creates a warning message and prints the message to the log. {% data reusables.actions.message-annotation-explanation %}
209209

210-
```plaintext{:copy}
210+
```{:copy}
211211
::warning file={name},line={line},endLine={endLine},title={title}::{message}
212212
```
213213

@@ -234,7 +234,7 @@ Write-Output "::warning file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
234234

235235
Creates an error message and prints the message to the log. {% data reusables.actions.message-annotation-explanation %}
236236

237-
```plaintext{:copy}
237+
```{:copy}
238238
::error file={name},line={line},endLine={endLine},title={title}::{message}
239239
```
240240

@@ -261,7 +261,7 @@ Write-Output "::error file=app.js,line=1,col=5,endColumn=7::Missing semicolon"
261261

262262
Creates an expandable group in the log. To create a group, use the `group` command and specify a `title`. Anything you print to the log between the `group` and `endgroup` commands is nested inside an expandable entry in the log.
263263

264-
```plaintext{:copy}
264+
```{:copy}
265265
::group::{title}
266266
::endgroup::
267267
```
@@ -304,7 +304,7 @@ jobs:
304304

305305
## Masking a value in log
306306

307-
```plaintext{:copy}
307+
```{:copy}
308308
::add-mask::{value}
309309
```
310310

@@ -368,7 +368,7 @@ jobs:
368368

369369
Stops processing any workflow commands. This special command allows you to log anything without accidentally running a workflow command. For example, you could stop logging to output an entire script that has comments.
370370

371-
```plaintext{:copy}
371+
```{:copy}
372372
::stop-commands::{endtoken}
373373
```
374374

@@ -380,7 +380,7 @@ To stop the processing of workflow commands, pass a unique token to `stop-comman
380380

381381
{% endwarning %}
382382

383-
```plaintext{:copy}
383+
```{:copy}
384384
::{endtoken}::
385385
```
386386

@@ -433,7 +433,7 @@ jobs:
433433

434434
Enables or disables echoing of workflow commands. For example, if you use the `set-output` command in a workflow, it sets an output parameter but the workflow run's log does not show the command itself. If you enable command echoing, then the log shows the command, such as `::set-output name={name}::{value}`.
435435

436-
```plaintext{:copy}
436+
```{:copy}
437437
::echo::on
438438
::echo::off
439439
```
@@ -484,7 +484,7 @@ jobs:
484484

485485
The example above prints the following lines to the log:
486486

487-
```plaintext{:copy}
487+
```{:copy}
488488
::set-output name=action_echo::enabled
489489
::echo::off
490490
```
@@ -617,7 +617,7 @@ steps:
617617

618618
For multiline strings, you may use a delimiter with the following syntax.
619619

620-
```plaintext{:copy}
620+
```{:copy}
621621
{name}<<{delimiter}
622622
{value}
623623
{delimiter}

0 commit comments

Comments
 (0)