INFRA-1882: publish the acceptance package on workflow-only changes

Merged
RB
7d ago
+3-1

Fast-follow from https://github.com/Unstructured-IO/unstructured-api/pull/597#discussion_r4667231346: a fix to cd_acceptance_package.yml alone could not trigger a publish, and rerunning a failed job reuses the old workflow definition.

What changed

  • .github/workflows/cd_acceptance_package.yml is now in its own push.paths.
  • workflow_dispatch is added.

The version is still <major>.<minor>.<commits touching acceptance/>. So a workflow-only push publishes the current version if an earlier run failed to, and otherwise hits the existing "already published; nothing to do" path. A manual dispatch has to run from main, because the publisher identity only admits refs/heads/main. From any other ref it fails at the publisher login.

Overlap with #598

#598 also edits this file, adding a job-level env: block. This PR touches only the on: block, so the two should merge cleanly in either order.


Session: INFRA-1882 do-task fast-follow (workflow triggers)

šŸ¤– Generated with Claude Code

https://claude.ai/code/session_01KceyiXqT2m6BNSP9tgFnqC