34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
name: OpenCode Gitea Integration
|
|
|
|
on:
|
|
issue_comment:
|
|
types: [created]
|
|
|
|
jobs:
|
|
opencode-gitea:
|
|
if: |
|
|
contains(github.event.comment.body, '/oc') ||
|
|
contains(github.event.comment.body, '/opencode')
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
persist-credentials: false
|
|
|
|
- name: Esegui OpenCode
|
|
uses: anomalyco/opencode/github@latest
|
|
env:
|
|
# Inserisci nei Secret di Gitea la chiave ottenuta dalla dashboard di OpenCode Zen
|
|
OPENCODE_ZEN_API_KEY: ${{ secrets.OPENCODE_ZEN_API_KEY }}
|
|
# Specifichiamo l'endpoint di OpenCode Zen per l'esecuzione remota dell'agente
|
|
OPENCODE_API_BASE: https://opencode.ai/zen/v1
|
|
# Passiamo il token di Gitea per permettere l'autenticazione sulla piattaforma
|
|
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
with:
|
|
# Configura l'azione per invocare Big Pickle
|
|
model: opencode/big-pickle
|
|
use_github_token: true
|