| name: Clone from Hugging Face |
| on: |
| schedule: |
| - cron: '0 0 * * *' |
| workflow_dispatch: |
| jobs: |
| clone: |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout |
| uses: actions/checkout@v4.1.2 |
| with: |
| repository: Anthonyg5005/hf-scripts |
| ref: main |
| token: ${{ secrets.WORKFLOW_TOKEN }} |
| persist-credentials: true |
| path: 'hf-scripts' |
| clean: true |
| fetch-depth: 0 |
| lfs: false |
| submodules: true |
| set-safe-directory: true |
| github-server-url: 'https://github.com' |
| - name: Clone from Hugging Face |
| env: |
| HF_TOKEN: ${{ secrets.HF_ACCESS_TOKEN }} |
| github_token: ${{ secrets.WORKFLOW_TOKEN }} |
| run: | |
| git clone https://Anthonyg5005:$HF_TOKEN@huggingface.co/Anthonyg5005/hf-scripts mirror |
| cd mirror |
| |
| |
| git remote set-url origin https://Anthonyg5005:${{ secrets.WORKFLOW_TOKEN }}@github.com/Anthonyg5005/hf-scripts.git |
| git push --mirror |
|
|