Skip to content

Commit

Permalink
Merge pull request #5191 from owncloud/adjust-github-comments-flow-2
Browse files Browse the repository at this point in the history
[tests-only] [full-ci] Exit early from build-github-comment-vrt if there are no diffs
  • Loading branch information
individual-it authored Jun 3, 2021
2 parents ba941e5 + 9414872 commit 72429e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,10 @@ def buildGithubCommentVisualDiff(ctx, suite, alternateSuiteName, runningOnOCIS):
"image": "owncloud/ubuntu:20.04",
"pull": "always",
"commands": [
"cd /var/www/owncloud/web/tests/vrt/diff",
"cd /var/www/owncloud/web/tests/vrt",
"if [ ! -d diff ]; then exit 0; fi",
"cd diff",
"if [ ! -d %s ]; then exit 0; fi" % backend,
"cd %s" % backend,
"ls -la",
'echo "<details><summary>:boom: Visual regression tests <strong>%s</strong> failed. Please find the screenshots inside ...</summary>\\n\\n${DRONE_BUILD_LINK}/${DRONE_JOB_NUMBER}\\n\\n<p>\\n\\n" >> /var/www/owncloud/web/comments.file' % alternateSuiteName,
Expand Down

0 comments on commit 72429e7

Please sign in to comment.