generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 51
54 lines (48 loc) · 1.82 KB
/
release-quarkus-platform-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Open quarkus-platform PR
on:
workflow_call:
inputs:
qosdk-version:
type: string
required: true
quarkus-platform-branch:
type: string
required: false
default: 'main'
secrets:
qosdk-bot-token:
required: true
jobs:
quarkus-platform-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: quarkusio/quarkus-platform
ref: ${{inputs.quarkus-platform-branch}}
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Update QOSDK version to ${{inputs.qosdk-version}} in quarkus-platform ${{inputs.quarkus-platform-branch}}
run: |
./mvnw -B versions:set-property -Dproperty=quarkus-operator-sdk.version -DnewVersion=${{inputs.qosdk-version}}
./mvnw -Dsync
- name: Create quarkus-platform pull request
uses: peter-evans/create-pull-request@v7
id: qp-pr
with:
title: "Update QOSDK to ${{inputs.qosdk-version}} for ${{inputs.quarkus-platform-branch}}"
commit-message: "Update QOSDK to ${{inputs.qosdk-version}}"
committer: metacosm <[email protected]>
author: metacosm <[email protected]>
branch: qosdk-release-${{inputs.qosdk-version}}-${{inputs.quarkus-platform-branch}}
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 }}"