From 364b24bf193fb6afa10a50e9f3b5ca720f6d9041 Mon Sep 17 00:00:00 2001 From: ReTeamSpeak Date: Tue, 12 May 2026 18:47:36 +0900 Subject: [PATCH] ci: opt into Node.js 24 and fix checkout in opencode workflow --- .github/workflows/ci.yml | 1 + .github/workflows/opencode.yml | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/opencode.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4816906..b666624 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ on: env: CARGO_TERM_COLOR: always + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" jobs: # Test job diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml new file mode 100644 index 0000000..076b54a --- /dev/null +++ b/.github/workflows/opencode.yml @@ -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