Download .github/workflows/pull-sheets.yml from StarVLA/BEHAVIOR-1K: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/datasets/StarVLA/BEHAVIOR-1K/resolve/main/.github/workflows/pull-sheets.yml
- Command line
-
hf download hf://datasets/StarVLA/BEHAVIOR-1K/.github/workflows/pull-sheets.yml
-
curl -L -o pull-sheets.yml https://huggingface.co/datasets/StarVLA/BEHAVIOR-1K/resolve/main/.github/workflows/pull-sheets.yml
1.03 kB
| name: Sync asset pipeline Google Sheets data | |
| on: | |
| schedule: | |
| - cron: "0 10 * * *" # Every day at 10am | |
| workflow_dispatch: | |
| # push: | |
| # branches: | |
| # - main | |
| jobs: | |
| pull-sheets: | |
| name: Sync Google Sheets data | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Setup python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.8" | |
| architecture: x64 | |
| - name: Install requirements | |
| run: pip install gspread pandas | |
| - name: Authenticate on Google Cloud | |
| uses: 'google-github-actions/auth@v1' | |
| with: | |
| credentials_json: '${{ secrets.GCP_CREDENTIALS }}' | |
| - uses: webfactory/ssh-agent@v0.9.0 | |
| with: | |
| ssh-private-key: ${{ secrets.SHEETS_DEPLOY_KEY }} | |
| - name: Refresh sheets data | |
| run: python -m b1k_pipeline.sync_sheets | |
| working-directory: asset_pipeline | |
| - uses: stefanzweifel/git-auto-commit-action@v4 | |
| with: | |
| commit_message: "Sync Google Sheets data" | |