Skip to content

Commit

Permalink
Setup CI for next branch (#12242)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Oct 16, 2024
1 parent 2b6daa5 commit 7bcae4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
push:
branches:
- main
- next
merge_group:
pull_request:
paths-ignore:
Expand Down Expand Up @@ -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 `<pr-number>/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
Expand Down

0 comments on commit 7bcae4e

Please sign in to comment.