diff --git a/.github/workflows/check-visual.yml b/.github/workflows/check-visual.yml index 5a28a3c60..8743b42a1 100644 --- a/.github/workflows/check-visual.yml +++ b/.github/workflows/check-visual.yml @@ -85,14 +85,6 @@ jobs: path: | tests/artifacts/**/* - - name: Find Comment - uses: peter-evans/find-comment@v2 - id: fc - with: - issue-number: ${{ github.event.pull_request.number }} - comment-author: "github-actions[bot]" - body-includes: "**Visual diff results for latest changes**" - - name: Check for artifacts id: check_artifacts run: | @@ -102,6 +94,15 @@ jobs: echo "present=false" >> $GITHUB_OUTPUT fi + - name: Find Comment + if: github.ref != 'refs/heads/master' + uses: peter-evans/find-comment@v2 + id: fc + with: + issue-number: ${{ github.event.pull_request.number }} + comment-author: "github-actions[bot]" + body-includes: "**Visual diff results for latest changes**" + - name: Create or update comment if: github.ref != 'refs/heads/master' && steps.check_artifacts.outputs.present == 'false' uses: peter-evans/create-or-update-comment@v2