huggingface sync #141
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: huggingface sync | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
concurrency: | |
group: baseline | |
cancel-in-progress: false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: false | |
fetch-depth: 0 | |
ref: main | |
- name: Set up Git | |
run: | | |
git config --global user.email "dtcxzyw2333@gmail.com" | |
git config --global user.name "Yingwei Zheng" | |
git lfs install | |
git clone https://dtcxzyw:$HF_TOKEN@huggingface.co/datasets/dtcxzyw/llvm-apr-benchmark | |
env: | |
HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
- name: Sync files | |
run: | | |
pip3 install jsonlines | |
cd llvm-apr-benchmark | |
rm -rf dataset examples scripts .gitignore CITATION.cff Dockerfile LICENSE README.md requirements.txt | |
cp -r ../dataset ../examples ../scripts ../.gitignore ../CITATION.cff ../Dockerfile ../LICENSE ../requirements.txt . | |
cat ../hf_dataset_card.md ../README.md > README.md | |
python3 ../scripts/pack_jsonlines.py ../dataset dataset.jsonl | |
git add . | |
git commit -m "Sync" || exit 0 | |
git push |