Add .gitea/workflows/opencode.yml
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user