Skip to content

Commit 62434c8

Browse files
Merge pull request #22872 from kjarkur/patch-1
change fromJson to fromJSON
2 parents 4b225d8 + 9719eba commit 62434c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ For more information, see "[Object filters](#object-filters)."
137137

138138
#### Example matching an array of strings
139139

140-
Instead of writing `github.event_name == "push" || github.event_name == "pull_request"`, you can use `contains()` with `fromJson()` to check if an array of strings contains an `item`.
140+
Instead of writing `github.event_name == "push" || github.event_name == "pull_request"`, you can use `contains()` with `fromJSON()` to check if an array of strings contains an `item`.
141141

142-
For example, `contains(fromJson('["push", "pull_request"]'), github.event_name)` returns `true` if `github.event_name` is "push" or "pull_request".
142+
For example, `contains(fromJSON('["push", "pull_request"]'), github.event_name)` returns `true` if `github.event_name` is "push" or "pull_request".
143143

144144
### startsWith
145145

0 commit comments

Comments
 (0)