diff --git a/.github/workflows/pr-path-detection.yml b/.github/workflows/pr-path-detection.yml index 6768c67fce..6b9f999fbe 100644 --- a/.github/workflows/pr-path-detection.yml +++ b/.github/workflows/pr-path-detection.yml @@ -127,7 +127,7 @@ jobs: if [[ "${png_path:0:1}" == "/" ]]; then check_path=${{github.workspace}}$png_path - elif [[ "${png_path:0:1}" == "#" ]]; then + elif [[ "$png_path" == *#* ]]; then check_path=${{github.workspace}}/$refer_path # $png_path else