Skip to content

FN API Io Items Fetch #640

FN API Io Items Fetch

FN API Io Items Fetch #640

Workflow file for this run

name: FN API Io Items Fetch
on:
schedule:
- cron: '0 */3 * * *'
permissions: write-all
jobs:
fetch_api:
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.10"
- name: Install dependencies
run: pip install requests
- name: Save Items
run: python fnapiio.py
env:
API_KEY: ${{ secrets.API_KEY }}
- name: Commit and push
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git pull
git add fnapiio/*
git commit -m "Update Items"
git push