generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }}" |