FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
opencode/github/action.yml at dev · frouo/opencode · GitHub
frouo
/
opencode
Public
forked from
anomalyco/opencode
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
opencode
/
github
/
action.yml
Copy path
More file actions
More file actions
Latest commit
History
History
History
74 lines (62 loc) · 2.23 KB
Breadcrumbs
opencode
/
github
/
action.yml
Copy path
File metadata and controls
74 lines (62 loc) · 2.23 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name
:
"
opencode GitHub Action
"
description
:
"
Run opencode in GitHub Actions workflows
"
branding
:
icon
:
"
code
"
color
:
"
orange
"
inputs
:
model
:
description
:
"
Model to use
"
required
:
true
agent
:
description
:
"
Agent to use. Must be a primary agent. Falls back to default_agent from config or 'build' if not found.
"
required
:
false
share
:
description
:
"
Share the opencode session (defaults to true for public repos)
"
required
:
false
prompt
:
description
:
"
Custom prompt to override the default prompt
"
required
:
false
use_github_token
:
description
:
"
Use GITHUB_TOKEN directly instead of OpenCode App token exchange. When true, skips OIDC and uses the GITHUB_TOKEN env var.
"
required
:
false
default
:
"
false
"
mentions
:
description
:
"
Comma-separated list of trigger phrases (case-insensitive). Defaults to '/opencode,/oc'
"
required
:
false
oidc_base_url
:
description
:
"
Base URL for OIDC token exchange API. Only required when running a custom GitHub App install. Defaults to https://api.opencode.ai
"
required
:
false
runs
:
using
:
"
composite
"
steps
:
-
name
:
Get opencode version
id
:
version
shell
:
bash
run
:
|
VERSION=$(curl -sf https://api.github.com/repos/anomalyco/opencode/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d'"' -f4)
echo "version=${VERSION:-latest}" >> $GITHUB_OUTPUT
-
name
:
Cache opencode
id
:
cache
uses
:
actions/cache@v4
with
:
path
:
~/.opencode/bin
key
:
opencode-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}
-
name
:
Install opencode
if
:
steps.cache.outputs.cache-hit != 'true'
shell
:
bash
run
:
curl -fsSL https://opencode.ai/install | bash
-
name
:
Add opencode to PATH
shell
:
bash
run
:
echo "$HOME/.opencode/bin" >> $GITHUB_PATH
-
name
:
Run opencode
shell
:
bash
id
:
run_opencode
run
:
opencode github run
env
:
MODEL
:
${{ inputs.model }}
AGENT
:
${{ inputs.agent }}
SHARE
:
${{ inputs.share }}
PROMPT
:
${{ inputs.prompt }}
USE_GITHUB_TOKEN
:
${{ inputs.use_github_token }}
MENTIONS
:
${{ inputs.mentions }}
OIDC_BASE_URL
:
${{ inputs.oidc_base_url }}
Back
|
FazBrowse Home
|
New Git URL