Run CI on release branches (#3814)

This commit is contained in:
Jon Koops 2022-12-01 13:07:17 +01:00 committed by GitHub
parent ab46a292d8
commit 43a6fd7089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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