fix(ci): prevent double CI runs on next
branch
This commit is contained in:
parent
e02438ce1f
commit
33193f9ac6
1 changed files with 1 additions and 2 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -4,7 +4,6 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- next
|
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '.vscode/**'
|
- '.vscode/**'
|
||||||
|
@ -224,7 +223,7 @@ jobs:
|
||||||
# We download all `dist/` artifacts from GitHub to skip the build process.
|
# We download all `dist/` artifacts from GitHub to skip the build process.
|
||||||
changelog:
|
changelog:
|
||||||
name: Changelog PR or Release
|
name: Changelog PR or Release
|
||||||
if: ${{ github.ref_name == 'main' && github.repository_owner == 'withastro' }}
|
if: ${{ (github.ref_name == 'main' || github.ref_name == 'next') && github.repository_owner == 'withastro' }}
|
||||||
needs: [build]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue