mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ci: fall back to main version for PR site builds
The version guard rejects non-main/release branches, but build-site also runs on PRs where the branch name is arbitrary. Default to "main" for PR builds since deploy-aws is skipped anyway. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
parent
6362a44cc4
commit
1c929da8ba
2
.github/workflows/docs-orchestrator.yml
vendored
2
.github/workflows/docs-orchestrator.yml
vendored
@ -333,6 +333,8 @@ jobs:
|
||||
version="main"
|
||||
elif [[ "$branch" =~ ^release/ ]]; then
|
||||
version="v${branch#release/}"
|
||||
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then
|
||||
version="main"
|
||||
else
|
||||
echo "::error::Unsupported branch for docs deploy: $branch (expected main or release/*)"
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user