diff --git a/.github/workflows/axe.yml b/.github/workflows/axe.yml index 2d519136402e..43dd75d6f2f3 100644 --- a/.github/workflows/axe.yml +++ b/.github/workflows/axe.yml @@ -28,17 +28,16 @@ jobs: run: | { echo 'AXE_OUTPUT<> "$GITHUB_ENV" - name: Read result - if: success() || failure() run: | echo "$AXE_OUTPUT" - name: Post result - if: failure() + if: ${{ contains(env.AXE_OUTPUT, 'Accessibility issues detected') }} uses: marocchino/sticky-pull-request-comment@v2 with: message: |