You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/reference/workflow-commands-for-github-actions.md
+38-17Lines changed: 38 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -65,22 +65,22 @@ You can use the `set-output` command in your workflow to set the same value:
65
65
66
66
The following table shows which toolkit functions are available within a workflow:
67
67
68
-
| Toolkit function| Equivalent workflow command|
69
-
| ------------- | ------------- |
70
-
| `core.addPath` | {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}Accessible using environment file `GITHUB_PATH`{% else %} `add-path` {% endif %} |
71
-
| `core.debug` | `debug` |
72
-
| `core.error` | `error` |
73
-
| `core.endGroup` | `endgroup` |
74
-
| `core.exportVariable` | {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}Accessible using environment file `GITHUB_ENV`{% else %} `set-env` {% endif %} |
75
-
| `core.getInput` | Accessible using environment variable `INPUT_{NAME}` |
76
-
| `core.getState` | Accessible using environment variable `STATE_{NAME}` |
77
-
| `core.isDebug` | Accessible using environment variable `RUNNER_DEBUG` |
78
-
| `core.saveState` | `save-state` |
79
-
| `core.setFailed` | Used as a shortcut for `::error` and `exit 1` |
80
-
| `core.setOutput` | `set-output` |
81
-
| `core.setSecret` | `add-mask` |
82
-
| `core.startGroup` | `group` |
83
-
| `core.warning` | `warning file` |
68
+
| Toolkit function| Equivalent workflow command|
69
+
| ----------------- | ------------- |
70
+
| `core.addPath` | {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}Accessible using environment file `GITHUB_PATH`{% else %} `add-path` {% endif %} |
71
+
| `core.debug` | `debug` |
72
+
| `core.error` | `error` |
73
+
| `core.endGroup` | `endgroup` |
74
+
| `core.exportVariable` | {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "enterprise-server@2.22" %}Accessible using environment file `GITHUB_ENV`{% else %} `set-env` {% endif %} |
75
+
| `core.getInput` | Accessible using environment variable `INPUT_{NAME}` |
76
+
| `core.getState` | Accessible using environment variable `STATE_{NAME}` |
77
+
| `core.isDebug` | Accessible using environment variable `RUNNER_DEBUG` |
78
+
| `core.saveState` | `save-state` |
79
+
| `core.setFailed` | Used as a shortcut for `::error` and `exit 1` |
80
+
| `core.setOutput` | `set-output` |
81
+
| `core.setSecret` | `add-mask` |
82
+
| `core.startGroup` | `group` |
83
+
| `core.warning` | `warning file` |
84
84
85
85
{% if currentVersion ver_lt "enterprise-server@2.23" %}
86
86
### Setting an environment variable
@@ -160,6 +160,25 @@ Creates an error message and prints the message to the log. You can optionally p
160
160
echo "::error file=app.js,line=10,col=15::Something went wrong"
161
161
```
162
162
163
+
### Grouping log lines
164
+
165
+
```
166
+
::group::{title}
167
+
::endgroup::
168
+
```
169
+
170
+
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.
171
+
172
+
#### Example
173
+
174
+
```bash
175
+
echo "::group::My title"
176
+
echo "Inside group"
177
+
echo "::endgroup::"
178
+
```
179
+
180
+

0 commit comments