Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Don't try to find comment on master for visual diffs
Rūdolfs Ošiņš committed 3 years ago
commit c1d0fbc1d75d1be9ef1619cca9778eb7cdec47fe
parent 68b0832280d3cbf87306960f522bcfd701f4d223
1 file changed +9 -8
modified .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