Keycloak
1name: Keycloak Guides
2
3on:
4push:
5branches-ignore:
6- main
7- dependabot/**
8- quarkus-next
9pull_request:
10workflow_dispatch:
11
12env:
13MAVEN_ARGS: "-B -nsu -Daether.connector.http.connectionMaxTtl=25"
14
15concurrency:
16# Only cancel jobs for PR updates
17group: guides-${{ github.ref }}
18cancel-in-progress: true
19
20defaults:
21run:
22shell: bash
23
24jobs:
25
26conditional:
27name: Check conditional workflows and jobs
28runs-on: ubuntu-latest
29outputs:
30guides: ${{ steps.conditional.outputs.guides }}
31ci: ${{ steps.conditional.outputs.ci }}
32steps:
33- uses: actions/checkout@v4
34
35- id: conditional
36uses: ./.github/actions/conditional
37with:
38token: ${{ secrets.GITHUB_TOKEN }}
39
40build:
41name: Build
42# will only build the guides if the general CI doesn't run, which will also build the guides
43if: ${{ needs.conditional.outputs.guides == 'true' && needs.conditional.outputs.ci != 'true' }}
44runs-on: ubuntu-latest
45needs: conditional
46steps:
47- uses: actions/checkout@v4
48
49- name: Build Keycloak
50uses: ./.github/actions/build-keycloak
51
52check:
53name: Status Check - Keycloak Guides
54if: always()
55needs:
56- conditional
57- build
58runs-on: ubuntu-latest
59steps:
60- uses: actions/checkout@v4
61- uses: ./.github/actions/status-check
62with:
63jobs: ${{ toJSON(needs) }}
64