Don't try to find comment on master for visual diffs

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-03-14 15:21:33 +01:00
parent 68b0832280
commit c1d0fbc1d7
+9 -8
View File
@@ -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