Skip to content

Generate Data

Generate Data #5842

Workflow file for this run

name: Generate Data
on:
workflow_dispatch:
schedule:
- cron: '30 12 * * *'
push:
branches:
- master
jobs:
generate-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.10'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
directory: ./
envkey_PLUTOF_USER: ${{ secrets.PLUTOF_USER }}
envkey_PLUTOF_PASSWORD: ${{ secrets.PLUTOF_PASSWORD }}
envkey_PLUTOF_CLIENT_ID: ${{ secrets.PLUTOF_CLIENT_ID }}
envkey_PLUTOF_CLIENT_SECRET: ${{ secrets.PLUTOF_CLIENT_SECRET }}
file_name: .env
- name: List files
run: ls -al
- name: Generate data
run: python index.py
- name: Commit data
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git checkout -b data
mv data.json generated.json
git add generated.json
git commit -m "Update data"
git push --force origin data