Skip to content

Commit

Permalink
Try and fix images with relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Mar 14, 2024
1 parent 9655a92 commit 6d6b4e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/Regression_Tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,15 @@ jobs:
env:
DISPLAY: :13.0

# Try and fix images with relative path
# <img src="/home/runner/work/rfswarm/rfswarm/Tests/Regression/Reporter/Logs/ubuntu-latest_3.12/Reporter.GUIBasic-screenshot-2.png" width="100%">
- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "img src=\"/home/runner/work/rfswarm/rfswarm/Tests/Regression/Reporter/Logs/${{ matrix.platform }}_${{ matrix.python }}"
replace: "img src=."
include: "Tests/Regression/Reporter/Logs/${{ matrix.platform }}_${{ matrix.python }}/log.html"

- name: Archive Reporter Logs
if: ${{ success() }}
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 6d6b4e3

Please sign in to comment.