diff --git a/.github/workflows/daily-cron-job.yml b/.github/workflows/daily-cron-job.yml new file mode 100644 index 0000000..7c85697 --- /dev/null +++ b/.github/workflows/daily-cron-job.yml @@ -0,0 +1,55 @@ +name: Daily Python Script + +on: + push: + branches: + - cron-job # or master, depending on your default branch + workflow_dispatch: # Keeps manual trigger option + +# once working, run once a day +#on: +# schedule: +# # Runs at 00:00 UTC every day +# - cron: '0 0 * * *' +# workflow_dispatch: # Allows manual trigger of the workflow + +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 + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Run script + run: python your_script.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 }} \ No newline at end of file diff --git a/backend/.env-template b/backend/.env-template index e4fe0ba..7a25502 100644 --- a/backend/.env-template +++ b/backend/.env-template @@ -1,11 +1,19 @@ -OC_LISTEN_PORT=1234 OC_HYBRID_ACCOUNT= ENTRY_POINTS= CHAIN_ID=28882 -HC_HELPER_ADDR= OC_PRIVKEY= -OC_OWNER= -OPENAI_APIKEY= +HC_HELPER_ADDR= +OC_LISTEN_PORT=1234 PRE_SIM_TOKEN_ADDR= OPENAI_API_KEY= -STARTING_BLOCK=0 \ No newline at end of file +OC_OWNER=auto-script-only +STARTING_BLOCK=0 +SUBMITTER_PK1=auto-script-only +SUBMITTER_PK2=auto-script-only +SUBMITTER_PK3=auto-script-only +BUNDLER_RPC=auto-script-only +BUNDLER_ADDR=auto-script-only +NODE_HTTP=auto-script-only +CLIENT_OWNER=auto-script-only +CLIENT_PRIVKEY=auto-script-only +CLIENT_ADDR=auto-script-only \ No newline at end of file