Skip to content

Commit 025048f

Browse files
committed
Fix minor CI/CD error in the yml
1 parent 5dd81c3 commit 025048f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
ALLOWLIST=("https://github.com/happycube/ld-decode")
4646
4747
# Find external links and extract just the URL (remove ]( prefix and ) suffix)
48-
EXTERNAL_LINKS=$(grep -oE '\]\(https?://[^)]+\)' wiki-default/Sidebar.md | cut -c3- | sed 's/)$//')
48+
EXTERNAL_LINKS=$(grep -oE '\]\(https?://[^)]+\)' wiki-default/Sidebar.md | cut -c3- | sed 's/)$//' || true)
4949
5050
# Filter out allowlisted URLs
5151
FILTERED_LINKS=""
@@ -59,8 +59,7 @@ jobs:
5959
fi
6060
done
6161
if [[ "$skip" == false ]]; then
62-
FILTERED_LINKS+="$url
63-
"
62+
FILTERED_LINKS+="$url"$'\n'
6463
fi
6564
done < <(echo "$EXTERNAL_LINKS")
6665

0 commit comments

Comments
 (0)