Skip to content

Commit a8d29d2

Browse files
Correct "return" in expressions
1 parent dfc135a commit a8d29d2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/actions/learn-github-actions/expressions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ Returns `true` if `search` contains `item`. If `search` is an array, this functi
125125

126126
#### Example using an array
127127

128-
`contains(github.event.issue.labels.*.name, 'bug')`
128+
`contains(github.event.issue.labels.*.name, 'bug')` returns whether the issue related to the event has a label "bug".
129129

130130
#### Example using a string
131131

132-
`contains('Hello world', 'llo')` returns `true`
132+
`contains('Hello world', 'llo')` returns `true`.
133133

134134
### startsWith
135135

@@ -139,7 +139,7 @@ Returns `true` when `searchString` starts with `searchValue`. This function is n
139139

140140
#### Example
141141

142-
`startsWith('Hello world', 'He')` returns `true`
142+
`startsWith('Hello world', 'He')` returns `true`.
143143

144144
### endsWith
145145

@@ -149,7 +149,7 @@ Returns `true` if `searchString` ends with `searchValue`. This function is not c
149149

150150
#### Example
151151

152-
`endsWith('Hello world', 'ld')` returns `true`
152+
`endsWith('Hello world', 'ld')` returns `true`.
153153

154154
### format
155155

@@ -159,20 +159,20 @@ Replaces values in the `string`, with the variable `replaceValueN`. Variables in
159159

160160
#### Example
161161

162-
Returns 'Hello Mona the Octocat'
163-
164162
`format('Hello {0} {1} {2}', 'Mona', 'the', 'Octocat')`
165163

166-
#### Example escaping braces
164+
Returns 'Hello Mona the Octocat'.
167165

168-
Returns '{Hello Mona the Octocat!}'
166+
#### Example escaping braces
169167

170168
{% raw %}
171169
```js
172170
format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat')
173171
```
174172
{% endraw %}
175173

174+
Returns '{Hello Mona the Octocat!}'.
175+
176176
### join
177177

178178
`join( array, optionalSeparator )`

0 commit comments

Comments
 (0)