Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
- dependabot/**
pull_request:
schedule:
- cron: 0 20,23,2,5 * * *
workflow_dispatch:

env:
Expand All @@ -28,7 +26,6 @@ jobs:

conditional:
name: Check conditional workflows and jobs
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
outputs:
ci: ${{ steps.conditional.outputs.ci }}
Expand Down Expand Up @@ -607,7 +604,7 @@ jobs:

check:
name: Status Check - Keycloak CI
if: always() && ( github.event_name != 'schedule' || github.repository == 'keycloak/keycloak' )
if: always()
needs:
- conditional
- check-set-status
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
- dependabot/**
pull_request:
branches: [main]
schedule:
- cron: 0 9 * * 2
workflow_dispatch:

concurrency:
# Only cancel jobs for PR updates
Expand All @@ -23,7 +22,6 @@ jobs:

conditional:
name: Check conditional workflows and jobs
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
outputs:
java: ${{ steps.conditional.outputs.codeql-java }}
Expand Down Expand Up @@ -94,7 +92,7 @@ jobs:

check:
name: Status Check - CodeQL
if: always() && ( github.event_name != 'schedule' || github.repository == 'keycloak/keycloak' )
if: always()
needs: [conditional, java, themes]
runs-on: ubuntu-latest

Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
- dependabot/**
pull_request:
schedule:
- cron: 0 5 * * *
workflow_dispatch:

env:
Expand All @@ -27,7 +25,6 @@ jobs:

conditional:
name: Check conditional workflows and jobs
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
outputs:
documentation: ${{ steps.conditional.outputs.documentation }}
Expand Down Expand Up @@ -125,7 +122,7 @@ jobs:

check:
name: Status Check - Keycloak Documentation
if: always() && ( github.event_name != 'schedule' || github.repository == 'keycloak/keycloak' )
if: always()
needs:
- conditional
- check-set-status
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/guides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:

conditional:
name: Check conditional workflows and jobs
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
outputs:
guides: ${{ steps.conditional.outputs.guides }}
Expand Down Expand Up @@ -64,7 +63,7 @@ jobs:

check:
name: Status Check - Keycloak Guides
if: always() && ( github.event_name != 'schedule' || github.repository == 'keycloak/keycloak' )
if: always()
needs:
- conditional
- check-set-status
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/js-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
- dependabot/**
pull_request:
schedule:
- cron: 0 20,23,2,5 * * *
workflow_dispatch:

concurrency:
Expand All @@ -22,7 +20,6 @@ defaults:
jobs:
conditional:
name: Check conditional workflows and jobs
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
outputs:
js-ci: ${{ steps.conditional.outputs.js }}
Expand Down Expand Up @@ -197,7 +194,7 @@ jobs:
browser: [chrome, firefox]
exclude:
# Only test with Firefox on scheduled runs
- browser: ${{ github.event_name != 'schedule' && 'firefox' || '' }}
- browser: ${{ github.event_name != 'workflow_dispatch' && 'firefox' || '' }}
steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -287,7 +284,7 @@ jobs:

check:
name: Status Check - Keycloak JavaScript CI
if: always() && ( github.event_name != 'schedule' || github.repository == 'keycloak/keycloak' )
if: always()
needs:
- conditional
- check-set-status
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/operator-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ on:
- main
- dependabot/**
pull_request:
schedule:
- cron: 0 20,23,2,5 * * *
workflow_dispatch:

env:
Expand All @@ -29,7 +27,6 @@ jobs:

conditional:
name: Check conditional workflows and jobs
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
outputs:
operator: ${{ steps.conditional.outputs.operator }}
Expand Down Expand Up @@ -226,7 +223,7 @@ jobs:

check:
name: Status Check - Keycloak Operator CI
if: always() && ( github.event_name != 'schedule' || github.repository == 'keycloak/keycloak' )
if: always()
needs:
- conditional
- check-set-status
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/schedule-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Scheduled nightly workflows

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:

setup:
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
outputs:
latest-release-branch: ${{ steps.latest-release.outputs.branch }}
steps:
- id: latest-release
run: |
branch="release/$(gh api repos/keycloak/keycloak/branches | jq -r '.[].name' | sort -r | awk -F'/' '/[0-9.]+$/ {print $NF; exit}')"
echo "branch=$branch"
echo "branch=$branch" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run-default-branch:
name: Run default branch
runs-on: ubuntu-latest
needs: setup

strategy:
matrix:
workflow:
- cy.yml
- documentation.yml
- js-ci.yml
- operator-ci.yml
- snyk-analysis.yml
- trivy-analysis.yml

steps:
- name: Run workflow
run: gh workflow run -R ${{ github.repository }} ${{ matrix.workflow }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

run-latest-release-branch:
name: Run latest release branch
needs: setup
runs-on: ubuntu-latest

strategy:
matrix:
workflow:
- snyk-analysis.yml

steps:
- run: echo ${{ needs.setup.outputs.latest-release-branch }}
- name: Run workflow
run: gh workflow run -R ${{ github.repository }} ${{ matrix.workflow }} -R ${{ needs.setup.outputs.latest-release-branch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 0 additions & 25 deletions .github/workflows/schedule.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/trivy-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Trivy

on:
schedule:
- cron: 0 6 * * *
workflow_dispatch:

defaults:
Expand Down