Skip to content

Deploy step "Update Notion status to Published" fails on every run (stale "Staging" select option) #185

Description

@luandro

What's broken

The deploy-production.yml workflow's last step, Update Notion status to Published (runs notionStatus:publish-productionscripts/notion-status), fails on every production deploy:

message: "select option \"Staging\" not found for property \"Publish Status\". Available options: \"Not started\", \"Update in progress\", \"Ready for translation\", \"Automated translation in progress\", \"Automated translations generated\", \"Auto translation generated\", \"Reviewing translations\", \"Ready to publish\", \"Adding to staging site\", \"Draft published\", \"Published\", \"Remove\", \"Unplublished\"."
✓ Recorded 0 status changes for rollback

Root cause

scripts/notion-status/index.ts:265-268 defines:

"publish-production": {
  from: "Staging",
  to: "Published",
  setPublishedDate: true,
},

"Staging" is not, and per the error message may never have been, a real option on the live Publish Status select property. The vocabulary was consolidated to the 13 options listed above (see digidem/comapeo-content-pipeline's mapStatus, 2026-07-01) — this script wasn't updated alongside that change.

Impact

Low — the script queries for pages matching from: "Staging", finds none, and fails with 0 status changes recorded (confirmed via rollback-session log: Recorded 0 status changes for rollback). It never mutates Notion data. But it fails the job on every deploy (though the actual deploy — build, Cloudflare Pages push, content-lock.sha promotion — completes in the steps before this one, so the site does update correctly; only this trailing step is red).

Suggested fix

Update the from value to a real current option. Best guess, unconfirmed: "Adding to staging site" is the closest semantic match to the old "Staging", but whoever owns the content-status lifecycle should confirm which of the 13 current options this workflow is actually meant to transition from before changing it — a wrong guess here would silently do nothing (matching current behavior) or move the wrong set of pages.

Where this was found

Live-verified during the first production deploy of comapeo-content-pipeline's output, 2026-07-13. Documented as a known non-blocking failure in that repo's DEPLOYMENT.md (pending PR #2 merge — link will 404 until then, see main branch after merge).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions