Update index.html #382
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: Save Pricing Data | |
#on: | |
#schedule: | |
#- cron: "*/15 * * * *" # 15 mins | |
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: Save Pricing Data | |
env: | |
API_KEY: ${{ secrets.TSM_API_KEY }} | |
run: python script.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 |