mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-12 12:49:07 +02:00
ci/cd: run CI checks on v* branches as well
This commit is contained in:
@@ -2,15 +2,15 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [main, "v[0-9]+"]
|
||||
pull_request:
|
||||
branches: [main, breaking/**]
|
||||
branches: [main, "v[0-9]+"]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# Cancel outdated runs of a pull request but test every commit on main
|
||||
# Cancel outdated runs of a pull request but test every commit on main and the major version branches
|
||||
concurrency:
|
||||
group: ci-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
@@ -28,7 +28,9 @@ jobs:
|
||||
max-failures: 4
|
||||
|
||||
# PR Branch Checks
|
||||
allowed-target-branches: "main"
|
||||
allowed-target-branches: |
|
||||
main
|
||||
v*
|
||||
blocked-target-branches: ""
|
||||
allowed-source-branches: ""
|
||||
blocked-source-branches: ""
|
||||
|
||||
Reference in New Issue
Block a user