From 7bcae4e3eea9aecc3480881088e334a77ae5c3e3 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Wed, 16 Oct 2024 21:14:51 +0800 Subject: [PATCH] Setup CI for next branch (#12242) --- .github/workflows/ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc214ba413..8a494b3179 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - next merge_group: pull_request: paths-ignore: @@ -208,6 +209,11 @@ jobs: with: repository: withastro/docs path: smoke/docs + # For a commit event on the `next` branch (`ref_name`), use the `5.0.0-beta` branch. + # For a pull_request event merging into the `next` branch (`base_ref`), use the `5.0.0-beta` branch. + # NOTE: For a pull_request event, the `ref_name` is something like `/merge` than the branch name. + # NOTE: Perhaps docs repo should use a consistent `next` branch in the future. + ref: ${{ (github.ref_name == 'next' || github.base_ref == 'next') && '5.0.0-beta' || 'main' }} - name: Install dependencies run: pnpm install --no-frozen-lockfile