ci: run workflows against 3.x branch as well

This commit is contained in:
Daniel Roe 2024-06-19 18:16:04 +01:00
parent c0ef279f2d
commit 31255a14db
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B
6 changed files with 8 additions and 1 deletions

View File

@ -7,6 +7,7 @@ on:
- "*.md" - "*.md"
branches: branches:
- main - main
- 3.x
# Remove default permissions of GITHUB_TOKEN for security # Remove default permissions of GITHUB_TOKEN for security
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

View File

@ -7,12 +7,14 @@ on:
- "*.md" - "*.md"
branches: branches:
- main - main
- 3.x
pull_request: pull_request:
paths-ignore: paths-ignore:
- "docs/**" - "docs/**"
- "*.md" - "*.md"
branches: branches:
- main - main
- 3.x
- "!v[0-9]*" - "!v[0-9]*"
# https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml # https://github.com/vitejs/vite/blob/main/.github/workflows/ci.yml

View File

@ -9,6 +9,7 @@ on:
# autofix workflow will be triggered instead for PRs # autofix workflow will be triggered instead for PRs
branches: branches:
- main - main
- 3.x
- "!v[0-9]*" - "!v[0-9]*"
# Remove default permissions of GITHUB_TOKEN for security # Remove default permissions of GITHUB_TOKEN for security

View File

@ -6,11 +6,13 @@ on:
- ".github/workflows/**" - ".github/workflows/**"
branches: branches:
- main - main
- 3.x
pull_request: pull_request:
paths: paths:
- ".github/workflows/**" - ".github/workflows/**"
branches: branches:
- main - main
- 3.x
- "!v[0-9]*" - "!v[0-9]*"
permissions: permissions:

View File

@ -6,6 +6,7 @@ on:
- opened - opened
branches: branches:
- main - main
- 3.x
jobs: jobs:
add-pr-labels: add-pr-labels:

View File

@ -12,7 +12,7 @@ on:
schedule: schedule:
- cron: '20 7 * * 2' - cron: '20 7 * * 2'
push: push:
branches: ["main"] branches: ["main", "3.x"]
# Declare default permissions as read only. # Declare default permissions as read only.
permissions: read-all permissions: read-all