mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-02 02:00:31 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user