|
38 | 38 | - uses: gradle/gradle-build-action@v2 |
39 | 39 | with: |
40 | 40 | cache-read-only: ${{ github.ref != 'refs/heads/main' }} |
41 | | - arguments: --quiet --no-configuration-cache setVersion -PnewVersion=${{ inputs.version }} |
42 | | - |
43 | | - - uses: gradle/gradle-build-action@v2 |
44 | | - with: |
45 | | - cache-read-only: ${{ github.ref != 'refs/heads/main' }} |
46 | | - arguments: --console=plain --quiet --no-configuration-cache build distZip publishNebulaPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository |
| 41 | + arguments: --console=plain --quiet --no-configuration-cache -Pversion=${{ inputs.version }} build distZip publishNebulaPublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository |
47 | 42 |
|
48 | 43 | - name: Create GitHub Release |
49 | 44 | id: create_release |
|
65 | 60 | asset_path: ./core-codemods/build/distributions/core-codemods-${{ inputs.version }}.zip |
66 | 61 | asset_name: codemodder-java-codemods-${{ inputs.version }}.zip |
67 | 62 | asset_content_type: application/zip |
68 | | - |
69 | | - |
70 | | - # share version bump |
71 | | - - run: | |
72 | | - git checkout -b bot/update-version |
73 | | - git add version.txt |
74 | | - git config user.name "github-actions[bot]" |
75 | | - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
76 | | - git commit -m '🚀 release v${{ inputs.version }}' |
77 | | -
|
78 | | - # set version for next release |
79 | | - - uses: gradle/gradle-build-action@v2 |
80 | | - with: |
81 | | - cache-read-only: ${{ github.ref != 'refs/heads/main' }} |
82 | | - arguments: -q --no-configuration-cache bumpPatch applySnapshot |
83 | | - |
84 | | - - run: | |
85 | | - git add version.txt |
86 | | - git config user.name "github-actions[bot]" |
87 | | - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" |
88 | | - git commit -m '🚧 prepare for next development iteration' |
89 | | - git push origin bot/update-version |
90 | | - gh pr create --title "🚧 prepare for next development iteration" --body "This PR was automatically created by the release workflow. Please review and merge it to update the version.txt file." |
0 commit comments