Skip to content

Commit 5561735

Browse files
committed
Fix the upgrade GitHub action
syslog-ng/syslog-ng#4755 added a `name` keyword that cause confusion for our simle script. Ensure we are processing an actual `{"name": "string"}` and not somthing like `{"name": {...}}` to find keywords.
1 parent 16a053b commit 5561735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ db = JSON.parse(File.read(ARGV[0]))
1616
def find_keywords(hash)
1717
keywords = []
1818
hash.each do |key, value|
19-
if key == 'name' && value && !value.start_with?('<')
19+
if key == 'name' && value && value.is_a?(String) && !value.start_with?('<')
2020
keywords << value
2121
keywords << value.gsub('-', '_')
2222
elsif value.is_a?(Hash)

0 commit comments

Comments
 (0)