Skip to content

Commit 9df1be6

Browse files
authored
Merge pull request #1035 from quarkiverse/release_wf_fix
Moving samples updates to release-prepare.yml
2 parents 56fc260 + ffc7590 commit 9df1be6

File tree

2 files changed

+5
-47
lines changed

2 files changed

+5
-47
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
while IFS= read -r -d '' pom
2+
do
3+
./mvnw org.codehaus.mojo:versions-maven-plugin:2.16.2:set-property -Dproperty=quarkus-langchain4j.version -DnewVersion=${CURRENT_VERSION} -f "$(dirname "$pom")";
4+
done < <(find samples/ -name pom.xml -print0)
5+
git commit -a -m "Update dependencies in samples"

.github/workflows/release-perform.yml

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -27,50 +27,3 @@ jobs:
2727
with:
2828
version: ${{github.event.inputs.tag || github.ref_name}}
2929
java_version: 23
30-
31-
post-release:
32-
name: Post release tasks
33-
runs-on: ubuntu-latest
34-
steps:
35-
- uses: actions/create-github-app-token@v1
36-
id: app-token
37-
name: Create GitHub App Token
38-
with:
39-
app-id: ${{ vars.CI_APP_ID }}
40-
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
41-
42-
- uses: actions/checkout@v4
43-
with:
44-
token: ${{ steps.app-token.outputs.token }}
45-
46-
- name: Get GitHub App User ID
47-
id: get-user-id
48-
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
49-
env:
50-
GH_TOKEN: ${{ steps.app-token.outputs.token }}
51-
52-
- name: Configure Git author
53-
run: |
54-
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
55-
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
56-
57-
- uses: radcortez/project-metadata-action@main
58-
name: Retrieve project metadata
59-
id: metadata
60-
with:
61-
github-token: ${{secrets.GITHUB_TOKEN}}
62-
metadata-file-path: '.github/project.yml'
63-
local-file: true
64-
65-
- name: Update dependency versions for the samples
66-
run: |
67-
while IFS= read -r -d '' pom
68-
do
69-
./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")";
70-
done < <(find samples/ -name pom.xml -print0)
71-
git commit -a -m "Update dependencies in samples"
72-
73-
- name: Push changes to ${{github.base_ref}} branch
74-
run: |
75-
git push
76-
git push origin ${{steps.metadata.outputs.current-version}}

0 commit comments

Comments
 (0)