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

This commit is contained in:
2026-07-05 15:18:11 +00:00
parent 6d19d39706
commit c3e48c05cf
+33
View File
@@ -0,0 +1,33 @@
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