Skip to content

Commit dfcc05f

Browse files
authored
wip: test workflow (#642)
1 parent 190b8a4 commit dfcc05f

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/test.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
on: workflow_dispatch
2+
jobs:
3+
test:
4+
runs-on: ubuntu-latest
5+
name: test
6+
steps:
7+
- uses: radcortez/project-metadata-action@main
8+
name: Retrieve project metadata
9+
id: metadata
10+
with:
11+
github-token: ${{secrets.GITHUB_TOKEN}}
12+
metadata-file-path: '.github/project.yml'
13+
14+
- uses: actions/checkout@v3
15+
with:
16+
repository: quarkusio/quarkus-platform
17+
path: quarkus-platform
18+
19+
- name: Update QOSDK version to ${{steps.metadata.outputs.current-version}} in quarkus-platform
20+
run: |
21+
cd quarkus-platform
22+
mvn -B versions:set-property -Dproperty=quarkus-operator-sdk.version -DnewVersion=${{steps.metadata.outputs.current-version}}
23+
./mvnw -Dsync
24+
25+
- uses: actions/checkout@v3
26+
with:
27+
repository: operator-framework/java-operator-plugins
28+
path: sdk-plugins
29+
30+
- name: Update QOSDK version to ${{steps.metadata.outputs.current-version}} in java-operator-plugins
31+
run: |
32+
cd sdk-plugins
33+
sed -i '' -e 's|<quarkus-sdk.version>.*</quarkus-sdk.version>|<quarkus-sdk.version>${{steps.metadata.outputs.current-version}}</quarkus-sdk.version>|' pkg/quarkus/v1alpha/scaffolds/internal/templates/pomxml.go
34+
35+
- name: Create java-operator-plugins pull request
36+
uses: peter-evans/create-pull-request@v5
37+
with:
38+
path: sdk-plugins
39+
title: "feat: update QOSDK to ${{steps.metadata.outputs.current-version}}"
40+
commit-message: "feat: update QOSDK to ${{steps.metadata.outputs.current-version}}"
41+
committer: metacosm <[email protected]>
42+
author: metacosm <[email protected]>
43+
branch: qosdk-release-${{steps.metadata.outputs.current-version}}
44+
token: ${{ secrets.QOSDK_BOT_TOKEN }}
45+
push-to-fork: qosdk-bot/java-operator-plugins
46+
47+
- name: Create quarkus-platform pull request
48+
uses: peter-evans/create-pull-request@v5
49+
with:
50+
path: quarkus-platform
51+
title: "Update QOSDK to ${{steps.metadata.outputs.current-version}}"
52+
commit-message: "Update QOSDK to ${{steps.metadata.outputs.current-version}}"
53+
committer: metacosm <[email protected]>
54+
author: metacosm <[email protected]>
55+
branch: qosdk-release-${{steps.metadata.outputs.current-version}}
56+
token: ${{ secrets.QOSDK_BOT_TOKEN }}
57+
push-to-fork: qosdk-bot/quarkus-platform

0 commit comments

Comments
 (0)