fix(release): sync the preview channel of the CDN before the stable one

- the stable channel opens a pull request and the preview channel pushes to main, both from a fresh clone of the CDN
- the stable pull request now branches off main after the preview push, so a release that moves both latest and preview no longer leaves it with a conflict in versions.json
This commit is contained in:
peaklabs-dev
2026-11-02 17:44:41 +01:00
parent 0becfba911
commit 33c0f6e571
+1 -1
View File
@@ -206,7 +206,7 @@ jobs:
gh auth setup-git
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
jq -r '{stable: .latest, preview: .preview} | to_entries[] | select(.value) | "\(.key) \(.value)"' <<< "$TAGS" | while read -r channel release; do
jq -r '{preview: .preview, stable: .latest} | to_entries[] | select(.value) | "\(.key) \(.value)"' <<< "$TAGS" | while read -r channel release; do
git switch --quiet --detach "$release"
scripts/sync-cdn.sh "--$channel" "${release#v}"
done