Skip to content

Update update-days.yml #377

Update update-days.yml

Update update-days.yml #377

Workflow file for this run

name: Save Pricing Data

Check failure on line 1 in .github/workflows/fetch.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/fetch.yml

Invalid workflow file

`schedule` accepts a list of one or more maps with the `cron` key set
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