ci: opt into Node.js 24 and fix checkout in opencode workflow

This commit is contained in:
ReTeamSpeak
2026-05-12 18:47:36 +09:00
parent 460ce6bb66
commit 364b24bf19
2 changed files with 35 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ on:
env:
CARGO_TERM_COLOR: always
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
# Test job
+34
View File
@@ -0,0 +1,34 @@
name: opencode
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
opencode:
if: |
contains(github.event.comment.body, '/oc') ||
contains(github.event.comment.body, '/opencode')
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Run OpenCode
uses: anomalyco/opencode/github@latest
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
with:
model: anthropic/claude-sonnet-4-20250514