ci(hf-mirror): inject HF model-card frontmatter + mirror notice on push
Browse files
.github/workflows/hf-mirror.yml
CHANGED
|
@@ -13,6 +13,32 @@ jobs:
|
|
| 13 |
uses: actions/checkout@v4
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
- name: Push to Hugging Face Hub (retry on transient 429)
|
| 17 |
env:
|
| 18 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
|
|
|
| 13 |
uses: actions/checkout@v4
|
| 14 |
with:
|
| 15 |
fetch-depth: 0
|
| 16 |
+
|
| 17 |
+
- name: Inject HF model-card frontmatter (runner-only; GitHub README stays clean)
|
| 18 |
+
run: |
|
| 19 |
+
printf '%s\n' \
|
| 20 |
+
'---' \
|
| 21 |
+
'license: mit' \
|
| 22 |
+
'tags:' \
|
| 23 |
+
' - agent-memory' \
|
| 24 |
+
' - long-term-memory' \
|
| 25 |
+
' - llm' \
|
| 26 |
+
' - ai-agents' \
|
| 27 |
+
' - mcp' \
|
| 28 |
+
' - retrieval' \
|
| 29 |
+
' - sqlite' \
|
| 30 |
+
' - rag' \
|
| 31 |
+
'---' \
|
| 32 |
+
'' \
|
| 33 |
+
'> **Read-only mirror of [`Sibyl-Labs/Sibyl-Memory`](https://github.com/Sibyl-Labs/Sibyl-Memory).** The canonical source is on GitHub. Install from PyPI: `pip install -U sibyl-memory-cli` 路 Docs: https://docs.sibyllabs.org/memory/ 路 Product: https://sibyllabs.org/plugin 路 Benchmarks: https://blog.sibylcap.com/beta-analysis' \
|
| 34 |
+
'' > README.hf.md
|
| 35 |
+
cat README.md >> README.hf.md
|
| 36 |
+
mv README.hf.md README.md
|
| 37 |
+
git config user.name sibyl
|
| 38 |
+
git config user.email sibyl@sibyllabs.org
|
| 39 |
+
git add README.md
|
| 40 |
+
git commit -q -m "hf: model-card frontmatter for the mirror" || echo "README unchanged"
|
| 41 |
+
|
| 42 |
- name: Push to Hugging Face Hub (retry on transient 429)
|
| 43 |
env:
|
| 44 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|