Skip to content

Commit

Permalink
refactor: do related steps in succession instead of by "type"
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
metacosm committed Nov 9, 2023
1 parent 5985d05 commit 97d1dd5
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
author: metacosm <[email protected]>
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
Expand Down Expand Up @@ -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 <[email protected]>
author: metacosm <[email protected]>
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 }}"
echo "Pull Request URL - ${{ steps.jop-pr.outputs.pull-request-url }}"

0 comments on commit 97d1dd5

Please sign in to comment.