chore(deps): update actions/setup-java action to v5.5.0 #38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Please | |
| on: | |
| push: | |
| branches: [ main, release/* ] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| release-please: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0 | |
| id: release | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| if: ${{ steps.release.outputs.release_created }} | |
| with: | |
| persist-credentials: true | |
| - name: Calculate next SNAPSHOT version | |
| id: next | |
| if: ${{ steps.release.outputs.release_created }} | |
| env: | |
| MAJOR: ${{ steps.release.outputs.major }} | |
| MINOR: ${{ steps.release.outputs.minor }} | |
| PATCH: ${{ steps.release.outputs.patch }} | |
| run: | | |
| next_patch=$(( PATCH + 1 )) | |
| echo "snapshot=${MAJOR}.${MINOR}.${next_patch}-SNAPSHOT" >> "$GITHUB_OUTPUT" | |
| - name: Bump version to next SNAPSHOT | |
| if: ${{ steps.release.outputs.release_created }} | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SNAPSHOT: ${{ steps.next.outputs.snapshot }} | |
| run: | | |
| branch="chore/next-snapshot-${SNAPSHOT}" | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git checkout -b "${branch}" | |
| sed -i "s/^detektExtensionVersion=.*/detektExtensionVersion=${SNAPSHOT}/" gradle.properties | |
| git add gradle.properties | |
| git commit -m "chore: prepare next development version ${SNAPSHOT}" | |
| git push origin "${branch}" | |
| gh pr create \ | |
| --title "chore: prepare next development version ${SNAPSHOT}" \ | |
| --body "Automated PR to bump version to next development SNAPSHOT after release." |