Repository navigation
ci: deploy the api reference from the main tip only, one deploy at a time - #2038
Conversation
|
Coverage Impact This PR will not change total coverage. 🚦 See full report on Qlty Cloud »🛟 Help
|
PMerlet
left a comment
There was a problem hiding this comment.
Spec (no ticket: the PR description): conforms.
PMerlet
left a comment
There was a problem hiding this comment.
Approved after /validator run 2038-20261023165727-PMerlet: nothing blocking posted, 0 preferential or code style, 0 suppressed below all.

The API reference now deploys from the tip of
mainonly, one deploy at a time.What
.github/workflows/build.ymlpublish-api-referencegetsconcurrency: pages-${{ github.ref }}(cancel-in-progress: false) and a first step that comparesgithub.shawith the current tip of the branch. Not the tip: Setup Pages and the deploy are skipped with a notice, and the job stays green.Why
d57be6091hit the deploy while the newer9a884d4e6was already deploying, and GitHub refused it:400 ... due to in progress deployment(run 39978461570).releasejob draining the backlog from the tip.How to test
actionlint(dockerrhysd/actionlint) onbuild.yml: same 2 pre-existing findings before and after, none on these lines.gh api repos/ForestAdmin/agent-nodejs/git/ref/heads/main --jq .object.sharun locally returns the tip SHA.mainyet: the next burst of merges is the real test (older runs should show the skip notice, the tip run deploys).Definition of Done
General
Security