[FEATURE]: Ability to get output from GitHub workflow #8332

Open
opened 2026-02-16 18:09:42 -05:00 by yindo · 1 comment
Owner

Originally created by @jsardev on GitHub (Feb 2, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

So basically I'd like to have an automated PR description creation, but unfortunately while trying to use the opencode workflow, it seems it doesn't provide any output that could be used in further steps.

What I'd like to achieve is something like this:

name: PR Description

on:
  pull_request:
    types: [opened, synchronize]

permissions:
  id-token: write
  contents: read
  pull-requests: write

jobs:
  pr-description:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v6
        with:
          persist-credentials: false

      - name: Generate PR description
        id: generate
        uses: anomalyco/opencode/github@v1.1.48
        env:
          OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
          OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
        with:
          model: ${{ vars.OPENCODE_MODEL }}
          prompt: |
            Analyze the git diff between the base branch and this PR, then generate a concise PR description.

            Format your response exactly like this:

            ### Summary
            * point 1
            * point 2
            * point 3

            Do not include any other text. Only output the description in the format above.

      - name: Update PR description
        uses: actions/github-script@v8
        with:
          script: |
            await github.rest.pulls.update({
              owner: context.repo.owner,
              repo: context.repo.repo,
              pull_number: context.issue.number,
              body: `${{ steps.generate.outputs.response }}`
            });
Originally created by @jsardev on GitHub (Feb 2, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request So basically I'd like to have an automated PR description creation, but unfortunately while trying to use the `opencode` workflow, it seems it doesn't provide any output that could be used in further steps. What I'd like to achieve is something like this: ```yaml name: PR Description on: pull_request: types: [opened, synchronize] permissions: id-token: write contents: read pull-requests: write jobs: pr-description: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v6 with: persist-credentials: false - name: Generate PR description id: generate uses: anomalyco/opencode/github@v1.1.48 env: OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }} with: model: ${{ vars.OPENCODE_MODEL }} prompt: | Analyze the git diff between the base branch and this PR, then generate a concise PR description. Format your response exactly like this: ### Summary * point 1 * point 2 * point 3 Do not include any other text. Only output the description in the format above. - name: Update PR description uses: actions/github-script@v8 with: script: | await github.rest.pulls.update({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.issue.number, body: `${{ steps.generate.outputs.response }}` }); ```
yindo added the discussion label 2026-02-16 18:09:42 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 2, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #9954: OpenCode GitHub Action hangs indefinitely at "Sending message to opencode…" (no output) - reports similar issue with GitHub Actions not producing output
  • #8009: Tool errors should be returned to Agent instead of crashing the Action - related to GitHub Action workflow output handling

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 2, 2026): This issue might be a duplicate of existing issues. Please check: - #9954: OpenCode GitHub Action hangs indefinitely at "Sending message to opencode…" (no output) - reports similar issue with GitHub Actions not producing output - #8009: Tool errors should be returned to Agent instead of crashing the Action - related to GitHub Action workflow output handling Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8332