ci: enable chack workflow_run jobs and use codex backend (#589)

This commit is contained in:
SirBroccoli
2026-02-13 18:11:02 +01:00
committed by GitHub
parent 3e2af030d4
commit 0ec20d2512
3 changed files with 43 additions and 16 deletions

View File

@@ -7,9 +7,8 @@ on:
jobs:
chack_agent_fix_master_failure:
# Temporarily disabled by maintainer request.
if: >
${{ false && github.event.workflow_run.conclusion == 'failure' &&
${{ github.event.workflow_run.conclusion == 'failure' &&
github.event.workflow_run.head_branch == 'master' &&
!startsWith(github.event.workflow_run.head_commit.message, 'Fix CI-master failures for run #') }}
runs-on: ubuntu-latest
@@ -98,11 +97,21 @@ jobs:
echo "Leave the repo in a state ready to commit; changes will be committed and pushed automatically."
} > chack_prompt.txt
- name: Set up Node.js for Codex
uses: actions/setup-node@v5
with:
node-version: "20"
- name: Install Codex CLI
run: |
npm install -g @openai/codex
codex --version
- name: Run Chack Agent
id: run_chack
uses: carlospolop/chack-agent@master
with:
provider: openrouter
provider: codex
model_primary: CHEAP_BUT_QUALITY
main_action: peass-ng
sub_action: CI-master Failure Chack-Agent PR
@@ -113,7 +122,7 @@ jobs:
tools_config_json: "{\"exec_enabled\": true}"
session_config_json: "{\"long_term_memory_enabled\": false}"
agent_config_json: "{\"self_critique_enabled\": false, \"require_task_list_init_first\": true}"
openrouter_api_key: ${{ secrets.OPENROUTER_API_KEY }}
openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- name: Commit and push fix branch if changed
id: push_fix