Update Huggingface Dataset #13
This file contains 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: Update Huggingface Dataset | |
on: | |
schedule: # once daily at 11:05 pm PST (6:05 UTC) | |
- cron: '5 6 * * *' | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: scripts/ | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python environment | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Setup environment | |
run: | | |
echo "HUGGINGFACE_LOGIN_TOKEN=${{ secrets.HUGGINGFACE_LOGIN_TOKEN }}" > .env | |
- name: Run script | |
run: python updateHfDataset.py |