Commit graph

10 commits

Author SHA1 Message Date
ThanhNguyxn
dd93919070 fix: add GH_TOKEN to continue-agents workflow
Fixes #9493

Agents using the gh CLI were failing with 'missing GH_TOKEN' error.
This adds the github.token to the Run agent step environment.
2026-01-13 11:06:29 +07:00
Nate
2d2147230c fix: prevent string interpolation issues in remaining workflow steps
- continue-agents.yml: Use env var for agent name in Create Check Run step
  (prevents JS template literal breakage with backticks in filenames)

- run-continue-agent.yml: Use jq to construct JSON body instead of
  string interpolation (prevents JSON syntax errors when prompt contains
  quotes, newlines, backslashes, or other special characters)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 15:54:17 -08:00
Nate
8969f42261 fix: also use env vars in Write job summary step
The Write job summary step had the same issue - backticks in the agent
output were being interpreted as bash command substitution, causing
'syntax error near unexpected token' failures.

Use environment variables and printf instead of echo to safely handle
all special characters in the output.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 15:51:55 -08:00
Nate
fe1a35a33e fix: use env vars for safe string handling in continue-agents workflow
The "Update Check Run" step was interpolating step outputs directly into
JavaScript template literals, which breaks when the agent output contains
backticks, template literal interpolation sequences, or other special
characters that interfere with JS string parsing.

This caused failures like "SyntaxError: Unexpected identifier 'mobile'" when
the agent output contained multi-line text with certain keywords.

Fix by passing outputs as environment variables and accessing them via
process.env, which safely handles all string content without parsing issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 14:06:53 -08:00
Dallin Romney
2b743a6eaf
Merge pull request #9407 from continuedev/dependabot/github_actions/actions/checkout-6
chore(deps): bump actions/checkout from 5 to 6
2026-01-05 13:31:47 -05:00
Dallin Romney
728f7564f0
Merge pull request #9408 from continuedev/dependabot/github_actions/actions/setup-node-6
chore(deps): bump actions/setup-node from 5 to 6
2026-01-05 13:31:27 -05:00
dependabot[bot]
188473fed6
chore(deps): bump actions/github-script from 7 to 8
Bumps [actions/github-script](https://github.com/actions/github-script) from 7 to 8.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v8)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-05 09:09:57 +00:00
dependabot[bot]
2e1397d8ae
chore(deps): bump actions/setup-node from 5 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-05 09:09:51 +00:00
dependabot[bot]
6398e7f738
chore(deps): bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-05 09:09:28 +00:00
Nate
526b0b6672 feat: Add reusable Continue Agents workflow
A reusable GitHub Actions workflow that discovers and runs Continue agent
files from `.continue/agents/` on pull requests.

Usage:
```yaml
name: Run Continue Agents
on:
  pull_request:
    types: [opened, synchronize]

jobs:
  agents:
    uses: continuedev/continue/.github/workflows/continue-agents.yml@main
    secrets:
      ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
```

Features:
- Discovers all .md agent files in .continue/agents/
- Runs each agent in parallel via matrix strategy
- Shows agent output in job logs, job summary, and check runs
- Properly fails jobs when agents fail

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-03 23:24:58 -05:00