diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml
index 432256e9..8770257e 100644
--- a/.github/workflows/on-pull-request.yml
+++ b/.github/workflows/on-pull-request.yml
@@ -40,7 +40,8 @@ jobs:
permalinks="
"
for fullfile in ${ALL_CHANGED_FILES}; do
commit=$(git rev-list -1 HEAD "$fullfile")
- permalinks+="- https://github.com/ecmwf-projects/c3s2-eqc-quality-assessment/blob/$commit/$fullfile
"
+ url=https://github.com/ecmwf-projects/c3s2-eqc-quality-assessment/blob/$commit/$fullfile
+ permalinks+="- $url
"
done
permalinks+="
"
echo "permalinks=$permalinks" >>"$GITHUB_OUTPUT"