From feaafcec67fbaab49e6b1ffadadb759319ee9bc9 Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Tue, 18 Aug 2026 22:20:33 -0400 Subject: [PATCH 1/2] validate staging content without publication credentials --- .github/workflows/content.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/content.yml b/.github/workflows/content.yml index 2fa28d8b..4981850f 100644 --- a/.github/workflows/content.yml +++ b/.github/workflows/content.yml @@ -59,9 +59,9 @@ jobs: CHANNEL=preview if test "${GITHUB_REF_NAME}" = main; then CHANNEL=production; fi if test "${GITHUB_REF_NAME}" = staging; then CHANNEL=staging; fi - VALIDATE=() - if test "${{ github.event_name }}" = pull_request; then VALIDATE+=(--validate-only); fi - if test "${{ github.event_name }}" != pull_request; then + VALIDATE=(--validate-only) + if test "${GITHUB_REF_NAME}" = main && test "${{ github.event_name }}" != pull_request; then + VALIDATE=() node ./.treeseed/content-publisher/dist/scripts/content/publish-content.js --acceptance --team-id "${TREESEED_TEAM_ID}" > r2-acceptance-receipt.json fi node ./.treeseed/content-publisher/dist/scripts/content/publish-content.js \ From 5893f925135628517a115bb8749caafe43cedd1e Mon Sep 17 00:00:00 2001 From: Adrian Webb Date: Tue, 18 Aug 2026 22:21:54 -0400 Subject: [PATCH 2/2] exercise content workflow contract changes --- .github/workflows/content.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/content.yml b/.github/workflows/content.yml index 4981850f..4f959bc3 100644 --- a/.github/workflows/content.yml +++ b/.github/workflows/content.yml @@ -4,9 +4,11 @@ on: push: paths: - 'docs/src/content/**' + - '.github/workflows/content.yml' pull_request: paths: - 'docs/src/content/**' + - '.github/workflows/content.yml' workflow_dispatch: permissions: