Skip to content

Commit 8c3df47

Browse files
authored
Merge pull request #25 from code-with-amirhossein/amir78729-patch-26
Update deploy.yml
2 parents 2b2444f + 05ed8d2 commit 8c3df47

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ jobs:
9494
id: extract
9595
run: |
9696
REPO="https://github.com/${{ github.repository }}"
97-
grep '^## ' pr_body.md | sed 's/^## //' > packages.txt
98-
97+
98+
# Match '## ' lines with optional leading spaces
99+
grep '^[[:space:]]*## ' pr_body.md | sed 's/^[[:space:]]*## //' > packages.txt
100+
99101
if [ -s packages.txt ]; then
100102
while read -r line; do
101103
ENCODED_TAG=$(printf "%s" "$line" | jq -sRr @uri)
@@ -104,7 +106,7 @@ jobs:
104106
else
105107
echo " • No packages found." > release_links.html
106108
fi
107-
109+
108110
{
109111
echo "RELEASE_LINKS<<EOF"
110112
cat release_links.html

0 commit comments

Comments
 (0)