From 97d1dd5b83fd6e17e5c59059b3aba467e7e144e0 Mon Sep 17 00:00:00 2001 From: Chris Laprun Date: Thu, 9 Nov 2023 16:27:23 +0100 Subject: [PATCH] refactor: do related steps in succession instead of by "type" More concretely do everything pertaining to quarkus-platform (including PR creation) before starting the update of OSDK plugins PR process. This way, if one step fails, the other one can still go through, since they are independent. [skip ci] Signed-off-by: Chris Laprun --- .github/workflows/release.yml | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 70fa4994f..73f88362f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,6 +68,26 @@ jobs: mvn -B versions:set-property -Dproperty=quarkus-operator-sdk.version -DnewVersion=${{steps.metadata.outputs.current-version}} ./mvnw -Dsync + - name: Create quarkus-platform pull request + uses: peter-evans/create-pull-request@v5 + id: qp-pr + with: + path: quarkus-platform + title: "Update QOSDK to ${{steps.metadata.outputs.current-version}}" + commit-message: "Update QOSDK to ${{steps.metadata.outputs.current-version}}" + committer: metacosm + author: metacosm + branch: qosdk-release-${{steps.metadata.outputs.current-version}} + token: ${{ secrets.QOSDK_BOT_TOKEN }} + push-to-fork: qosdk-bot/quarkus-platform + delete-branch: true + + - name: Check quarkus-platform PR + if: ${{ steps.qp-pr.outputs.pull-request-number }} + run: | + echo "Pull Request Number - ${{ steps.qp-pr.outputs.pull-request-number }}" + echo "Pull Request URL - ${{ steps.qp-pr.outputs.pull-request-url }}" + - uses: actions/checkout@v3 with: repository: operator-framework/java-operator-plugins @@ -97,24 +117,4 @@ jobs: if: ${{ steps.jop-pr.outputs.pull-request-number }} run: | echo "Pull Request Number - ${{ steps.jop-pr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.jop-pr.outputs.pull-request-url }}" - - - name: Create quarkus-platform pull request - uses: peter-evans/create-pull-request@v5 - id: qp-pr - with: - path: quarkus-platform - title: "Update QOSDK to ${{steps.metadata.outputs.current-version}}" - commit-message: "Update QOSDK to ${{steps.metadata.outputs.current-version}}" - committer: metacosm - author: metacosm - branch: qosdk-release-${{steps.metadata.outputs.current-version}} - token: ${{ secrets.QOSDK_BOT_TOKEN }} - push-to-fork: qosdk-bot/quarkus-platform - delete-branch: true - - - name: Check quarkus-platform PR - if: ${{ steps.qp-pr.outputs.pull-request-number }} - run: | - echo "Pull Request Number - ${{ steps.qp-pr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.qp-pr.outputs.pull-request-url }}" \ No newline at end of file + echo "Pull Request URL - ${{ steps.jop-pr.outputs.pull-request-url }}" \ No newline at end of file