Skip to content

Commit 8c7758d

Browse files
committed
Bring back automatic version update in samples
1 parent 7cdc04c commit 8c7758d

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

.github/workflows/release-perform.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,23 @@ concurrency:
2121

2222
jobs:
2323
perform-release:
24-
name: Perform Release
25-
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
26-
secrets: inherit
27-
with:
28-
version: ${{github.event.inputs.tag || github.ref_name}}
29-
java_version: 23
24+
steps:
25+
- name: Perform Release
26+
uses: quarkiverse/.github/.github/workflows/perform-release.yml@main
27+
secrets: inherit
28+
with:
29+
version: ${{github.event.inputs.tag || github.ref_name}}
30+
java_version: 23
31+
32+
- name: Update dependency versions for the samples
33+
run: |
34+
while IFS= read -r -d '' pom
35+
do
36+
./mvnw org.codehaus.mojo:versions-maven-plugin:2.16.2:set-property -Dproperty=quarkus-langchain4j.version -DnewVersion=${{steps.metadata.outputs.current-version}} -f "$(dirname "$pom")";
37+
done < <(find samples/ -name pom.xml -print0)
38+
git commit -a -m "Update dependencies in samples"
39+
40+
- name: Push changes to ${{github.base_ref}} branch
41+
run: |
42+
git push
43+
git push origin ${{steps.metadata.outputs.current-version}}

0 commit comments

Comments
 (0)