Update Fake API Information #3
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: Update Fake API Information | |
on: | |
schedule: | |
- cron: "0 0 * * 4" | |
workflow_dispatch: | |
jobs: | |
clone: | |
name: clone repository | |
runs-on: ubuntu-22.04 | |
steps: | |
- run: git clone https://github.com/redstone59/Nine-Circ-le | |
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: 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 |