chore: change default branch to canary (#4948)

This commit is contained in:
LongYinan
2023-11-15 15:46:50 +08:00
committed by GitHub
parent cc2ade601c
commit e7e617a791
21 changed files with 31 additions and 52 deletions

View File

@@ -3,7 +3,7 @@ name: Build(Desktop) & Test
on:
push:
branches:
- master
- canary
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:
@@ -15,7 +15,7 @@ on:
pull_request:
merge_group:
branches:
- master
- canary
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:

View File

@@ -3,7 +3,7 @@ name: Build(Server) & Test
on:
push:
branches:
- master
- canary
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:
@@ -15,7 +15,7 @@ on:
pull_request:
merge_group:
branches:
- master
- canary
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:

View File

@@ -3,7 +3,7 @@ name: Build & Test
on:
push:
branches:
- master
- canary
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:
@@ -15,7 +15,7 @@ on:
pull_request:
merge_group:
branches:
- master
- canary
- v[0-9]+.[0-9]+.x-staging
- v[0-9]+.[0-9]+.x
paths-ignore:

View File

@@ -13,11 +13,11 @@ name: 'CodeQL'
on:
push:
branches: [master]
branches: [canary]
pull_request:
merge_group:
# The branches below must be a subset of the branches above
branches: [master]
branches: [canary]
jobs:
analyze:

View File

@@ -2,7 +2,7 @@ name: Release Charts
on:
push:
branches: [master]
branches: [canary]
paths:
- '.github/helm/**/Chart.yml'

View File

@@ -6,7 +6,7 @@ on:
- labeled
- unlabeled
branches:
- master
- canary
jobs:
check_labels:

View File

@@ -2,13 +2,13 @@ name: Languages Sync
on:
push:
branches: ['master']
branches: ['canary']
paths:
- 'packages/frontend/i18n/**'
- '.github/workflows/languages-sync.yml'
- '!.github/actions/setup-node/action.yml'
pull_request_target:
branches: ['master']
branches: ['canary']
paths:
- 'packages/frontend/i18n/**'
- '.github/workflows/languages-sync.yml'
@@ -23,13 +23,13 @@ jobs:
- name: Setup Node.js
uses: ./.github/actions/setup-node
- name: Check Language Key
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/canary'
run: yarn workspace @affine/i18n run sync-languages:check
env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}
- name: Sync Languages
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/canary'
run: yarn workspace @affine/i18n run sync-languages
env:
TOLGEE_API_KEY: ${{ secrets.TOLGEE_API_KEY }}

View File

@@ -7,7 +7,7 @@ on:
- edited
- synchronize
branches:
- master
- canary
permissions:
contents: read

View File

@@ -7,10 +7,10 @@ on:
workflow_dispatch:
push:
branches:
- master
- canary
pull_request:
branches:
- master
- canary
paths-ignore:
- README.md
- .github/**

View File

@@ -3,7 +3,7 @@ name: Release
on:
push:
branches:
- master
- canary
env:
BUILD_TYPE: stable
@@ -89,7 +89,7 @@ jobs:
if-no-files-found: error
build-docker:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/canary'
name: Build Docker
runs-on: ubuntu-latest
needs:

View File

@@ -3,7 +3,7 @@ name: Deploy Cloudflare Worker
on:
push:
branches:
- master
- canary
paths:
- tools/workers/**