Run CI on release branches (#3814)
This commit is contained in:
parent
ab46a292d8
commit
43a6fd7089
2 changed files with 5 additions and 5 deletions
6
.github/workflows/cypress.yml
vendored
6
.github/workflows/cypress.yml
vendored
|
@ -1,9 +1,9 @@
|
||||||
name: Cypress
|
name: Cypress
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main, release/**]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main, release/**]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 4 * * *'
|
- cron: '0 4 * * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- name: Check out Keycloak Server
|
- name: Check out Keycloak Server
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ${{ inputs.keycloakRepo || 'keycloak/keycloak' }}
|
repository: ${{ inputs.keycloakRepo || (contains(github.ref, 'release/') && github.ref || 'keycloak/keycloak') }}
|
||||||
ref: ${{ inputs.keycloakBranch || 'main' }}
|
ref: ${{ inputs.keycloakBranch || 'main' }}
|
||||||
path: keycloak-repo
|
path: keycloak-repo
|
||||||
|
|
||||||
|
|
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -1,9 +1,9 @@
|
||||||
name: CI
|
name: CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main, release/**]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main, release/**]
|
||||||
concurrency:
|
concurrency:
|
||||||
# Only cancel jobs for new commits on PRs, and always do a complete run on other branches (e.g. `main`).
|
# Only cancel jobs for new commits on PRs, and always do a complete run on other branches (e.g. `main`).
|
||||||
# See: https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
|
# See: https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
|
||||||
|
|
Loading…
Reference in a new issue