Skip to content

Merge pull request #10 from bobanetwork/wsdt/cron-job #3

Merge pull request #10 from bobanetwork/wsdt/cron-job

Merge pull request #10 from bobanetwork/wsdt/cron-job #3

name: Daily Python Script
on:
schedule:
- cron: '0 0 * * *' # Runs at midnight UTC every day
push:
branches:
- main
workflow_dispatch:
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
working-directory: backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run script
working-directory: backend/auto-submit
run: python run-all.py
env:
OC_HYBRID_ACCOUNT: "0x4CEDc51820f738c97b2B338d5a6f4D8100d3b122"
ENTRY_POINTS: "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789"
CHAIN_ID: "28882"
HC_HELPER_ADDR: "0x1c64EC0A5E2C58295c3208a63209A2A719dF68D8"
OC_LISTEN_PORT: "1234"
PRE_SIM_TOKEN_ADDR: "0x224392754d925411ff4e21ae979b33662dee009f"
OC_OWNER: "0x4B063eF8d8a6d441d56903c9b4130E79E6099383"
STARTING_BLOCK: "0"
BUNDLER_RPC: "https://bundler-hc.sepolia.boba.network"
BUNDLER_ADDR: "0xe7003B2d8477518DfAE9afB3Bfd6Fe7726A9C551"
NODE_HTTP: "https://sepolia.boba.network"
CLIENT_OWNER: "0x4B063eF8d8a6d441d56903c9b4130E79E6099383"
CLIENT_ADDR: "0xB299c59b73D852BD2142CFd3b25774AfAd1Fc62d"
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OC_PRIVKEY: ${{ secrets.OC_PRIVKEY }}
SUBMITTER_PK1: ${{ secrets.SUBMITTER_PK1 }}
SUBMITTER_PK2: ${{ secrets.SUBMITTER_PK2 }}
SUBMITTER_PK3: ${{ secrets.SUBMITTER_PK3 }}
CLIENT_PRIVKEY: ${{ secrets.CLIENT_PRIVKEY }}