diff --git a/.github/workflows/ai-code-review.yml b/.github/workflows/ai-code-review.yml index 5b6fea09..3bec16ba 100644 --- a/.github/workflows/ai-code-review.yml +++ b/.github/workflows/ai-code-review.yml @@ -97,7 +97,7 @@ jobs: log_level: "DEBUG" - name: Add thumbs down reaction if something went wrong - if: steps.review.outcome == 'failure' + if: failure() run: gh api graphql --silent --raw-field query="mutation AddReaction {addReaction(input:{subjectId:\"$NODE_ID\",content:THUMBS_DOWN}){reaction{content}subject{id}}}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}