Skip to content

Commit 856993b

Browse files
committed
Correct Build workflow-ref regression fixture
1 parent 8a93557 commit 856993b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fixtures/agent-task-reusable-workflow-build-run-29295530010.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Regression fixture from Build run 29295530010. In a nested workflow GitHub
22
# exposed this caller context, not the reusable workflow's own uses ref.
3-
# github.workflow_ref: Automattic/wp-build/.github/workflows/build.yml@trunk
3+
# github.workflow_ref: Automattic/build-with-wordpress/.github/workflows/build.yml@trunk
44
name: Build consumer with foreign caller workflow ref
55

66
on: workflow_dispatch

tests/agent-task-reusable-workflow.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const mismatchedConsumer = await readFile(new URL("../fixtures/agent-task-reusab
6666
const buildRunConsumer = await readFile(new URL("../fixtures/agent-task-reusable-workflow-build-run-29295530010.yml", import.meta.url), "utf8")
6767
assert.equal(isCoherentConsumer(coherentConsumer), true, "An exact matching workflow and helper release tag must succeed")
6868
assert.equal(isCoherentConsumer(mismatchedConsumer), false, "Mismatched workflow and helper release tags must fail")
69-
assert.match(buildRunConsumer, /github\.workflow_ref: Automattic\/wp-build\/\.github\/workflows\/build\.yml@trunk/)
69+
assert.match(buildRunConsumer, /github\.workflow_ref: Automattic\/build-with-wordpress\/\.github\/workflows\/build\.yml@trunk/)
7070
assert.equal(isCoherentConsumer(buildRunConsumer), true, "A foreign caller workflow_ref must not affect the paired release tags")
7171
for (const invalidRef of ["main", "v0", "v0.12", "v0.12.3-rc.1", "0123456789abcdef0123456789abcdef01234567"]) {
7272
assert.equal(isExactReleaseTag(invalidRef), false, `Non-release ref must fail: ${invalidRef}`)

0 commit comments

Comments
 (0)