Update .gitea/workflows/opencode.yml
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@@ -10,6 +10,7 @@ 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
|
||||||
@@ -18,16 +19,15 @@ jobs:
|
|||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Esegui OpenCode
|
- name: Esegui OpenCode (Big Pickle)
|
||||||
uses: anomalyco/opencode/github@latest
|
uses: anomalyco/opencode/github@latest
|
||||||
env:
|
env:
|
||||||
# Inserisci nei Secret di Gitea la chiave ottenuta dalla dashboard di OpenCode Zen
|
# Mappiamo il tuo secret personalizzato nella variabile letta da OpenCode
|
||||||
OPENCODE_ZEN_API_KEY: ${{ secrets.OPENCODE_ZEN_API_KEY }}
|
OPENCODE_ZEN_API_KEY: ${{ secrets.OPENCODE_ZEN_API_KEY }}
|
||||||
# Specifichiamo l'endpoint di OpenCode Zen per l'esecuzione remota dell'agente
|
# Endpoint ufficiale di OpenCode Zen per l'esecuzione
|
||||||
OPENCODE_API_BASE: https://opencode.ai/zen/v1
|
OPENCODE_API_BASE: https://opencode.ai
|
||||||
# Passiamo il token di Gitea per permettere l'autenticazione sulla piattaforma
|
# Passiamo il token di Gitea simulando la variabile "GITHUB_TOKEN" richiesta dall'azione
|
||||||
GITHUB_TOKEN: ${{ secrets.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
|
||||||
|
|||||||
Reference in New Issue
Block a user