|
27 | 27 | with: |
28 | 28 | version: ${{github.event.inputs.tag || github.ref_name}} |
29 | 29 | 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