Skip to content

Commit 69658df

Browse files
author
BRO
committed
fix: strip old YAML front matter before HF README merge
1 parent 58f4fb3 commit 69658df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/hf-mirror.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
2626
# Add HF dataset card metadata before README
2727
printf '%s\n' '---' 'license: mit' 'tags:' ' - ai-agent' ' - behavioral-dna' ' - i-lang' ' - ilang-protocol' ' - personality' ' - developer-tools' 'pretty_name: Imprint - AI Behavioral DNA Protocol' 'configs:' ' - config_name: default' ' data_files:' ' - split: train' ' path: data/*.jsonl' '---' '' > /tmp/hf-push/README.md
28-
cat README.md >> /tmp/hf-push/README.md
28+
awk '/^---$/{c++; next} c>=2' README.md >> /tmp/hf-push/README.md
2929
cd /tmp/hf-push
3030
git init -b main
3131
git config user.name "ilang-ai"

0 commit comments

Comments
 (0)