Files
comunidadhll/.github/workflows/codex-worker.yml
devRaGonSa 0cf98a1be9
Some checks failed
Codex Worker / run-codex-worker (push) Has been cancelled
initial export
2026-06-02 16:23:16 +02:00

34 lines
784 B
YAML

name: Codex Worker
on:
workflow_dispatch:
push:
paths:
- 'ai/tasks/pending/**'
- 'AGENTS.md'
- 'ai/**'
- 'scripts/codex-runner.ps1'
jobs:
run-codex-worker:
runs-on: ubuntu-latest
if: ${{ secrets.OPENAI_API_KEY != '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Codex CLI
run: npm install -g @openai/codex
- name: Run Codex Worker
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
codex --auto "Follow AGENTS.md, read the AI platform files in ai/, and process only the pending tasks within scoped repository rules."