Skip to content

Commit bf9c7a1

Browse files
authored
Advance docs maintenance producers to WP Codebox v0.12.24 (#111)
1 parent 2e26a61 commit bf9c7a1

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
repository: Automattic/docs-agent
22-
ref: 397f32e5c82f662199f2c3555e32804ed0365d7f
22+
ref: e641d0d696aafd27255b5888b35a6ef0cde3f408
2323
path: .producer/docs-agent
2424
- uses: actions/checkout@v4
2525
with:
2626
repository: Automattic/wp-codebox
27-
ref: a2b02cd99ba645ba2250bf58c943bdd1eb13e690
27+
ref: 8db3c937c3b29b2df7ecde3212650942659d18a8
2828
path: .producer/wp-codebox
2929
- uses: pnpm/action-setup@v4
3030
with:

.github/workflows/developer-docs-agent.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
jobs:
2828
developer-docs-agent:
2929
name: Maintain Developer Docs
30-
uses: Automattic/docs-agent/.github/workflows/maintain-docs.yml@397f32e5c82f662199f2c3555e32804ed0365d7f
30+
uses: Automattic/docs-agent/.github/workflows/maintain-docs.yml@e641d0d696aafd27255b5888b35a6ef0cde3f408
3131
with:
3232
audience: technical
3333
run_kind: ${{ github.event.inputs.run_kind || 'maintenance' }}

tests/docs-agent-workflows.test.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { readFile } from "node:fs/promises"
44
import { resolve } from "node:path"
55

66
const root = resolve(new URL("..", import.meta.url).pathname)
7-
const docsAgentRevision = "397f32e5c82f662199f2c3555e32804ed0365d7f"
7+
const docsAgentRevision = "e641d0d696aafd27255b5888b35a6ef0cde3f408"
88
const docsAgentPackageRevision = "7b2df969c34de112ec7ad13189ba94226a7f76f3"
9-
const wpCodeboxRevision = "a2b02cd99ba645ba2250bf58c943bdd1eb13e690"
10-
const wpCodeboxWorkflowRef = "v0.12.23"
9+
const wpCodeboxProducerRevision = "8db3c937c3b29b2df7ecde3212650942659d18a8"
10+
const wpCodeboxWorkflowRef = "v0.12.24"
1111
const docsAgentDir = process.env.DOCS_AGENT_DIR
1212
const wpCodeboxDir = process.env.WP_CODEBOX_DIR
1313

@@ -18,12 +18,13 @@ const revision = (directory) => execFileSync("git", ["-C", directory, "rev-parse
1818
const readJson = async (directory, path) => JSON.parse(await readFile(resolve(directory, path), "utf8"))
1919

2020
assert.equal(revision(docsAgentDir), docsAgentRevision, "Docs Agent checkout must match the declared producer revision")
21-
assert.equal(revision(wpCodeboxDir), wpCodeboxRevision, "WP Codebox checkout must match the Docs Agent producer revision")
21+
assert.equal(revision(wpCodeboxDir), wpCodeboxProducerRevision, "WP Codebox checkout must match the immutable producer revision")
2222

2323
const docsAgentWorkflow = await readFile(resolve(docsAgentDir, ".github/workflows/maintain-docs.yml"), "utf8")
2424
const wpCodeboxContract = await readJson(wpCodeboxDir, "contracts/run-agent-task-reusable-workflow-interface.v1.json")
2525
assert.equal(wpCodeboxContract.schema, "wp-codebox/reusable-workflow-interface/v1")
2626
assert.match(docsAgentWorkflow, new RegExp(`uses: Automattic/wp-codebox/.github/workflows/run-agent-task.yml@${wpCodeboxWorkflowRef}`))
27+
assert.match(docsAgentWorkflow, new RegExp(`wp_codebox_release_ref: ${wpCodeboxWorkflowRef}`))
2728
assert.match(docsAgentWorkflow, new RegExp(`DOCS_AGENT_PACKAGE_REVISION: ${docsAgentPackageRevision}`))
2829
assert.match(docsAgentWorkflow, /OPENAI_API_KEY: \$\{\{ secrets\.OPENAI_API_KEY \}\}/)
2930
assert.match(docsAgentWorkflow, /ACCESS_TOKEN: \$\{\{ github\.token \}\}/)

0 commit comments

Comments
 (0)