Skip to content

Commit

Permalink
Create fnapiio.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tposejank authored Sep 6, 2024
1 parent ce1ed31 commit e9170a4
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/fnapiio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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@v4
with:
fetch-depth: 1

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- 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

0 comments on commit e9170a4

Please sign in to comment.