From 32a2ba6d22678aab1aab703c7235a40cb1b57505 Mon Sep 17 00:00:00 2001 From: Faouzi Braza Date: Sun, 7 Sep 2025 09:23:19 +0200 Subject: [PATCH] build: github actions opencode --- .github/workflows/opencode.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index eafaeca..35eb719 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -5,29 +5,27 @@ on: types: [created] pull_request_review_comment: types: [created] - issues: - types: [opened, assigned] - pull_request_review: - types: [submitted] jobs: opencode: if: | - contains(github.event.comment.body, ' /oc') || - startsWith(github.event.comment.body, '/oc') || - contains(github.event.comment.body, ' /opencode') || - startsWith(github.event.comment.body, '/opencode') + contains(github.event.comment.body, '/oc') || + contains(github.event.comment.body, '/opencode') runs-on: ubuntu-latest permissions: - contents: read id-token: write + contents: write + pull-requests: write + issues: write steps: - name: Checkout repository uses: actions/checkout@v4 + with: + fetch-depth: 1 - name: Run opencode uses: sst/opencode/github@latest env: - ZHIPU_API_KEY: ${{ secrets.ZHIPU_API_KEY }} + OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} with: - model: zai/glm-4.5 \ No newline at end of file + model: openrouter/anthropic/claude-sonnet-4 \ No newline at end of file