diff options
| author | Frank <[email protected]> | 2025-07-25 17:34:47 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-07-25 17:34:47 -0400 |
| commit | 3a7a2a838ec6ba625aa27aaa73cf4ea8ee03e79e (patch) | |
| tree | 0c9b4fbaf21001511959b6ba803b8b1b162868b7 /sdks/github/action.yml | |
| parent | 10ae43a12190ed3ac96ae1d672b1aa1dd006b072 (diff) | |
| download | opencode-3a7a2a838ec6ba625aa27aaa73cf4ea8ee03e79e.tar.gz opencode-3a7a2a838ec6ba625aa27aaa73cf4ea8ee03e79e.zip | |
wip: github actions
Diffstat (limited to 'sdks/github/action.yml')
| -rw-r--r-- | sdks/github/action.yml | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/sdks/github/action.yml b/sdks/github/action.yml deleted file mode 100644 index 8501ce098..000000000 --- a/sdks/github/action.yml +++ /dev/null @@ -1,58 +0,0 @@ -name: "opencode GitHub Action" -description: "Run opencode in GitHub Actions workflows" -branding: - icon: "code" - color: "orange" - -inputs: - model: - description: "Model to use" - required: false - - share: - description: "Share the opencode session (defaults to true for public repos)" - required: false - -outputs: - share_url: - description: "URL to share the opencode execution" - value: ${{ steps.run_opencode.outputs.share_url }} - -runs: - using: "composite" - steps: - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - - - name: Install Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.2.16 - - - name: Install Dependencies - shell: bash - run: | - cd ${GITHUB_ACTION_PATH} - bun install - - - name: Install opencode - shell: bash - run: curl -fsSL https://opencode.ai/install | bash - - - name: Run opencode - shell: bash - id: run_opencode - run: | - bun run ${GITHUB_ACTION_PATH}/src/index.ts - env: - INPUT_MODEL: ${{ inputs.model }} - INPUT_SHARE: ${{ inputs.share }} - - #- name: Testing - # shell: bash - # run: | - # gh pr comment ${{ github.event.number }} --body "This is an automated comment" - # env: - # GH_TOKEN: ${{ github.token }} |
