Skip to content

Commit 174ac04

Browse files
CopilotTechQuery
andcommitted
fix: remove echo $() wrapping to preserve newlines in deploy-data.yml
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
1 parent 598bc3d commit 174ac04

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/deploy-data.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ jobs:
2121
cd data/
2222
2323
echo -e "\n## 数据接口 / Data Interface\n" >> index.md
24-
echo $(
25-
ls -1 *.yml 2>/dev/null | \
24+
ls -1 *.yml 2>/dev/null | \
2625
sed 's/\.yml$//' | nl | \
27-
sed 's/^[[:space:]]*\([0-9]*\)[[:space:]]*\(.*\)$/\1. [\2](https:\/\/goodaction-hub.github.io\/GoodAction-data\/\2.json)/'
28-
) >> index.md
26+
sed 's/^[[:space:]]*\([0-9]*\)[[:space:]]*\(.*\)$/\1. [\2](https:\/\/goodaction-hub.github.io\/GoodAction-data\/\2.json)/' >> index.md
2927
cd -
3028
3129
- name: Deploy to GitHub pages

0 commit comments

Comments
 (0)