Files
keycloak/.github/workflows/quarkus-next.yml
T
dependabot[bot] e79ce1804d Bump actions/checkout from 4.2.2 to 6.0.2
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.2 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.2.2...de0fac2e4500dabe0009e67214ff5f5447ce83dd)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-20 11:21:18 +02:00

104 lines
2.9 KiB
YAML

name: Quarkus Next
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
defaults:
run:
shell: bash
concurrency:
# Only cancel jobs for PR updates
group: quarkus-next-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-quarkus-snapshot:
name: Build Quarkus snapshot
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: quarkusio/quarkus
ref: main
# JDK 17 to match how Quarkus builds and publishes its own snapshots
- name: Setup Java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: temurin
java-version: 17
- name: Key for daily rotation of cache
id: cache-key
run: echo "date=$(date -u +%Y-%m-%d)" >> $GITHUB_OUTPUT
- name: Quarkus snapshot cache
id: quarkus-cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: |
~/.m2/repository/io/quarkus
key: quarkus-snapshot-${{ steps.cache-key.outputs.date }}
- name: Build Quarkus snapshot
if: steps.quarkus-cache.outputs.cache-hit != 'true'
run: |
./mvnw -B -e --no-transfer-progress \
-Dquickly -Dno-test-modules -Prelocations \
clean install
update-quarkus-next-branch:
name: Update quarkus-next branch
runs-on: ubuntu-latest
needs: build-quarkus-snapshot
permissions:
contents: write # Required to push changes to the repository
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: main
fetch-depth: 0
- name: Setup Java
uses: ./.github/actions/java-setup
- name: Configure Git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Cherry-pick additional commits in quarkus-next
run: |
${GITHUB_WORKSPACE}/.github/scripts/prepare-quarkus-next.sh
- name: Push changes
run: |
git push -f origin HEAD:quarkus-next
run-matrix-with-quarkus-next:
name: Run workflow matrix with the quarkus-next branch
runs-on: ubuntu-latest
permissions:
actions: write # Required to trigger workflows using gh
needs:
- update-quarkus-next-branch
strategy:
matrix:
workflow:
- ci.yml
- operator-ci.yml
steps:
- name: Run workflow with the nightly Quarkus release
run: gh workflow run -R ${{ github.repository }} ${{ matrix.workflow }} -r quarkus-next
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}