2525 - ' .all-contributorsrc'
2626
2727concurrency :
28- group : ${{ github.workflow }}-${{ github.ref }}
28+ group : " ${{ github.workflow }}-${{ github.ref }}"
2929 cancel-in-progress : true
3030
3131jobs :
32- extract-branch-name :
32+ extract-project-metadata :
3333 runs-on : ubuntu-latest
3434 outputs :
3535 branch_name : ${{ steps.extract_branch.outputs.branch }}
36+ qosdk_quarkus_version : ${{ steps.quarkus-version.outputs.quarkus_version }}
37+ latest_stable_quarkus : ${{ steps.get-quarkus-version.outputs.value }}
3638 steps :
3739 - name : Extract branch name
3840 shell : bash
3941 run : echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
4042 id : extract_branch
43+ - uses : actions/checkout@v4
44+
45+ - name : Retrieve Quarkus version
46+ id : quarkus-version
47+ run : echo "quarkus_version=$(mvn help:evaluate -Dexpression=quarkus.version -q -DforceStdout)" >> $GITHUB_OUTPUT
48+
49+ - name : Retrieve latest stable Quarkus version from platform
50+ id : get-quarkus-version
51+ uses : sergeysova/jq-action@v2
52+ with :
53+ cmd : curl https://registry.quarkus.io/client/platforms | jq '.platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version'
54+
4155 build-with-quarkus-version :
4256 needs :
43- - extract-branch-name
57+ - extract-project-metadata
4458 strategy :
4559 matrix :
4660 java-version : [ 17, 21 ]
47- quarkus-version-jq-cmd :
48- - ' .platforms[0]."current-stream-id" as $current | .platforms[0].streams[] | select(.id == $current) | .releases[0].version '
49- # - '.platforms[0].streams[] | select(.id == "3.6") | .releases[0].version'
61+ quarkus-version :
62+ - ${{ needs.extract-project-metadata.outputs.qosdk_quarkus_version }}
63+ - ${{ needs.extract-project-metadata.outputs.latest_stable_quarkus }}
5064 uses : ./.github/workflows/build-for-quarkus-version.yml
5165 with :
52- quarkus-version-jq-cmd : ${{ matrix.quarkus-version-jq-cmd }}
53- # quarkus-version: 3.6.0
66+ quarkus-version : ${{ matrix.quarkus-version }}
5467 java-version : ${{ matrix.java-version }}
55- branch : ${{ needs.extract-branch-name .outputs.branch_name }}
68+ branch : ${{ needs.extract-project-metadata .outputs.branch_name }}
5669 native-modules : " integration-tests"
5770 repository : ${{ github.event.pull_request.head.repo.full_name }}
0 commit comments