From fd93a2dc614d60b25363ac4096500978be07f7f4 Mon Sep 17 00:00:00 2001 From: Tim <135014430+nagisa77@users.noreply.github.com> Date: Tue, 28 Oct 2025 13:56:18 +0800 Subject: [PATCH] Add scheduled reply bot workflow --- .github/workflows/reply-bots.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/reply-bots.yml diff --git a/.github/workflows/reply-bots.yml b/.github/workflows/reply-bots.yml new file mode 100644 index 000000000..e7b38bcf9 --- /dev/null +++ b/.github/workflows/reply-bots.yml @@ -0,0 +1,28 @@ +name: Reply Bots + +on: + schedule: + - cron: "*/30 * * * *" + workflow_dispatch: + +jobs: + run-reply-bot: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + + - name: Install dependencies + run: npm install --no-save @openai/agents ts-node typescript + + - name: Run reply bot + env: + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + OPENISLE_TOKEN: ${{ secrets.OPENISLE_TOKEN }} + run: npx ts-node --esm bots/reply_bots.ts