Update .gitea/workflows/opencode.yml
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
2026-07-05 15:32:17 +00:00
parent 1e3c08cd52
commit 7deb5ff041
+6 -6
View File
@@ -10,7 +10,6 @@ jobs:
contains(github.event.comment.body, '/oc') || contains(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, '/opencode') contains(github.event.comment.body, '/opencode')
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 20 # Evita interruzioni premature per il deep reasoning di big-pickle
steps: steps:
- name: Checkout repository - name: Checkout repository
@@ -19,15 +18,16 @@ jobs:
fetch-depth: 1 fetch-depth: 1
persist-credentials: false persist-credentials: false
- name: Esegui OpenCode (Big Pickle) - name: Esegui OpenCode
uses: anomalyco/opencode/github@latest uses: anomalyco/opencode/github@latest
env: env:
# Mappiamo il tuo secret personalizzato nella variabile letta da OpenCode # Inserisci nei Secret di Gitea la chiave ottenuta dalla dashboard di OpenCode Zen
OPENCODE_ZEN_API_KEY: ${{ secrets.OPENCODE_ZEN_API_KEY }} OPENCODE_ZEN_API_KEY: ${{ secrets.OPENCODE_ZEN_API_KEY }}
# Endpoint ufficiale di OpenCode Zen per l'esecuzione # Specifichiamo l'endpoint di OpenCode Zen per l'esecuzione remota dell'agente
OPENCODE_API_BASE: https://opencode.ai OPENCODE_API_BASE: https://opencode.ai/zen/v1
# Passiamo il token di Gitea simulando la variabile "GITHUB_TOKEN" richiesta dall'azione # Passiamo il token di Gitea per permettere l'autenticazione sulla piattaforma
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }} GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
with: with:
# Configura l'azione per invocare Big Pickle
model: opencode/big-pickle model: opencode/big-pickle
use_github_token: true use_github_token: true