From d4cf37d194de9512be1a3d87aa4b280d6d69fa4f Mon Sep 17 00:00:00 2001 From: Adam Dean Date: Thu, 2 Jan 2025 17:36:37 -0700 Subject: [PATCH] Apparently it also helps to have the shell script here in the main branch with the action file... Signed-off-by: Adam Dean --- fix_coverage.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fix_coverage.sh diff --git a/fix_coverage.sh b/fix_coverage.sh new file mode 100644 index 0000000..5fd713e --- /dev/null +++ b/fix_coverage.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +COVERAGE_DIR="coverage" + +find "$COVERAGE_DIR" -type f -name "*.html" -exec sed -i \ + -e 's|_css/|css/|g' \ + -e 's|_js/|js/|g' \ + -e 's|_icons/|icons/|g' \ + -e 's|/home/runner/work/bech32/bech32|.|g' {} \; + +echo "Links in PHPUnit HTML files updated successfully."