Test SQLite #2021
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: Test SQLite | |
on: | |
schedule: | |
- cron: "*/15 * * * *" # 15 mins | |
workflow_dispatch: | |
jobs: | |
save_data: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' # Specify your Python version | |
- name: Install dependencies | |
run: pip install requests | |
- name: Update Pricing Days | |
env: | |
API_KEY: ${{ secrets.TSM_API_KEY }} | |
run: python dbfetch.py | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "actions@github.com" | |
git config --local user.name "GitHub Actions" | |
git add . | |
git commit -m "Add latest pricing data JSON file" | |
git push |