Update quarkus-platform #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update quarkus-platform | |
| on: | |
| workflow_call: | |
| inputs: | |
| tag: | |
| type: string | |
| description: 'QOSDK tag to publish on platform' | |
| required: true | |
| workflow_dispatch: | |
| inputs: | |
| tag: | |
| description: 'QOSDK tag to publish on platform' | |
| type: string | |
| required: true | |
| jobs: | |
| prepare-platform-pr: | |
| name: Prepare Platform Update | |
| runs-on: ubuntu-latest | |
| outputs: | |
| released: ${{steps.wait-for-bom.outputs.published}} | |
| quarkus-platform-branches: ${{steps.qosdk-metadata.outputs.quarkus_platform_branches}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{github.event.inputs.tag || github.ref_name}} | |
| - uses: radcortez/project-metadata-action@main | |
| name: Retrieve project metadata | |
| id: metadata | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} | |
| metadata-file-path: '.github/project.yml' | |
| local-file: true | |
| - name: Parse QOSDK metadata | |
| id: qosdk-metadata | |
| run: | | |
| quarkus_platform_branches=$(echo '${{steps.metadata.outputs.json}}' | jq -c '.release.["quarkus-platform-branches"]') | |
| echo "quarkus_platform_branches=${quarkus_platform_branches}" >> $GITHUB_OUTPUT | |
| - name: Wait for QOSDK BOM to be published | |
| uses: quarkusio/monitor-artifact-publication-action@main | |
| id: wait-for-bom | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| group-id: io.quarkiverse.operatorsdk | |
| artifact-id: quarkus-operator-sdk-bom | |
| version: ${{github.event.inputs.tag || github.ref_name}} | |
| initial-delay: 0 | |
| poll-delay: 1 | |
| poll-iterations: 10 | |
| post-delay: 0 | |
| quarkus-platform-branch-pull-requests: | |
| uses: ./.github/workflows/release-quarkus-platform-pr.yml | |
| needs: | |
| - prepare-platform-pr | |
| if: "${{needs.prepare-platform-pr.outputs.released}}" | |
| with: | |
| qosdk-version: ${{github.event.inputs.tag || github.ref_name}} | |
| quarkus-platform-branches: ${{needs.prepare-platform-pr.outputs.quarkus-platform-branches}} | |
| secrets: inherit |