Skip to content

Update Fake API Information #10

Update Fake API Information

Update Fake API Information #10

Workflow file for this run

name: Update Fake API Information
on:
schedule:
- cron: "0 0 * * 1,3,5"
workflow_dispatch:
jobs:
clone:
name: clone repository
runs-on: ubuntu-22.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: |
ls ${{ github.workspace }}
python:
name: install python
runs-on: ubuntu-22.04
needs: [clone]
steps:
- run: sudo add-apt-repository ppa:deadsnakes/ppa
- run: sudo apt-get install -y python3.12
scrape_api:
name: run scrape api file
runs-on: ubuntu-22.04
needs: [python]
steps:
- run: cd ${{ github.workspace }}
- run: python scrape_api.py
push:
name: commit and push changes
runs-on: ubuntu-22.04
needs: [scrape_api]
steps:
- run: git add .
- run: git commit -am "Automatically update fake API information"
- run: git push