Sync Script #3229
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: Sync Script | |
on: | |
schedule: | |
# Every 3 min from 10 through 23 in every month from June through July. | |
- cron: "*/3 10-23 * 6-7 *" | |
workflow_dispatch: # Allows you to manually trigger the workflow | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" # Adjust this to the Python version you need | |
- name: Install dependencies | |
run: | | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Run sync script | |
run: python sync.py | |
env: | |
SPORTMONKS_API_KEY: ${{ secrets.SPORTMONKS_API_KEY }} | |
DESTINATION__POSTGRES__CREDENTIALS__DATABASE: ${{ secrets.DESTINATION__POSTGRES__CREDENTIALS__DATABASE }} | |
DESTINATION__POSTGRES__CREDENTIALS__PASSWORD: ${{ secrets.DESTINATION__POSTGRES__CREDENTIALS__PASSWORD }} | |
DESTINATION__POSTGRES__CREDENTIALS__USERNAME: ${{ secrets.DESTINATION__POSTGRES__CREDENTIALS__USERNAME }} | |
DESTINATION__POSTGRES__CREDENTIALS__HOST: ${{ secrets.DESTINATION__POSTGRES__CREDENTIALS__HOST }} |