From 393c0d7eb96380aaae15bd34af20ca14715df0a4 Mon Sep 17 00:00:00 2001 From: Aaron Klaassen Date: Mon, 30 Sep 2019 13:40:17 -0500 Subject: [PATCH] Use && rather than and. --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a97a0c3..8ccee1a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -32,7 +32,7 @@ end message = ARGV.join(' ') coms = github.issue_comments(repo, pr["number"]) -duplicate = coms.find { |c| c["user"]["login"] == 'github-actions[bot]' and c["body"] == message } +duplicate = coms.find { |c| c["user"]["login"] == "github-actions[bot]" && c["body"] == message } if duplicate puts "The PR already contains a database change notification"