.github/workflows/cron.yaml #37027
This file contains hidden or 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
| on: | |
| push: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: # Enables on-demand/manual triggering | |
| jobs: | |
| job: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| - run: | | |
| pip install -q requests | |
| cd forecastEx | |
| python markets.py & | |
| cd ../polymarket | |
| python markets.py & | |
| cd ../metaculus | |
| python questions.py & | |
| wait | |
| find *.json -exec yq -i 'del(.[].question.aggregations.[].history)' {} \; # ~85% size cut | |
| cd ../kalshi | |
| python markets.py | |
| python events.py | |
| cd ../manifold | |
| python extreme.py | jq . --tab > extreme.json | |
| python ce.py > ce.txt | |
| python markets.py | |
| python users.py | |
| sed -i '/([Uu]rl|daily|[Ww]eek(ly)?|monthly)": /d' *.json # ~30% size cut | |
| find ../. -size +100M -delete # GitHub's file size limit | |
| env: | |
| API_KEY: ${{ secrets.API_KEY }} | |
| - uses: peter-evans/create-pull-request@v6 | |
| with: | |
| commit-message: market update | |
| title: market update | |
| delete-branch: true |