Skip to content

add a ci job sync readme to huggingface repos #5

add a ci job sync readme to huggingface repos

add a ci job sync readme to huggingface repos #5

Workflow file for this run

name: Sync README to Hugging Face Hub
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
sync-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Sync README
run: |
git clone https://huggingface.co/shiyue-loop/test
cp README.md test/README.md
cd test
git config --global user.email "bot@01.ai"
git config --global user.name "01-ai-bot"
git add README.md
git commit -m "Sync README"
git push https://shiyue-loop:${{ secrets.HF_TOKEN }}@huggingface.co/shiyue-loop/test