From 6eff54b76130bfca087cd5ff0d8c7848286f2b0e Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 24 Jul 2025 12:19:05 -0700 Subject: [PATCH] check for phrase ota in comment --- .github/workflows/pull-request-comment.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/pull-request-comment.yml b/.github/workflows/pull-request-comment.yml index 1cc6d6a89f..8efa37f832 100644 --- a/.github/workflows/pull-request-comment.yml +++ b/.github/workflows/pull-request-comment.yml @@ -18,6 +18,20 @@ jobs: run: | if [[ "${{ github.event.comment.body }}" == *"@github-actions"* ]] || \ [[ "${{ github.event.comment.body }}" == *"github-actions[bot]"* ]]; then + bot_mentioned=true + else + bot_mentioned=false + fi + + + if [[ "${{ github.event.comment.body }}" == *"ota"* ]]; then + has_ota=true + else + has_ota=false + fi + + + if [[ "$bot_mentioned" == "true" ]] && [[ "$has_ota" == "true" ]]; then echo "mentioned=true" >> $GITHUB_OUTPUT else echo "mentioned=false" >> $GITHUB_OUTPUT