Skip to content

Commit bd4bf90

Browse files
committed
fix(ci): if PR targets main, then update quarkus-platform main
Signed-off-by: Chris Laprun <[email protected]>
1 parent be1daea commit bd4bf90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ jobs:
7676
else
7777
echo "quarkus-platform update will target ${quarkus_platform_branch}"
7878
echo "Check if quarkus-platform also needs to be updated on main"
79-
qosdk_latest=$(curl -sL https://api.github.com/repos/quarkiverse/quarkus-operator-sdk/releases/latest | jq -r ".tag_name")
80-
echo "Latest QOSDK release: ${qosdk_latest}"
81-
if [ "${{steps.metadata.outputs.current-version}}" = "${qosdk_latest}" ]; then
79+
if [ "${{ github.base_ref }}" = "main" ]; then
80+
# assume that if the PR targets main, then we also need to update quarkus-platform main
8281
echo "need_main_pr=true" >> $GITHUB_OUTPUT
8382
else
8483
echo "No need for PR on quarkus-platform main"

0 commit comments

Comments
 (0)