Bump quarkus.platform.version from 3.4.1 to 3.4.2 #105
Workflow file for this run
This file contains 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: CI | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
jobs: | |
versioning: | |
if: ${{ !contains(github.event.head_commit.message, 'Tag new version') }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ github.event_name == 'pull_request' && secrets.GITHUB_TOKEN || secrets.TAG_PAT_TOKEN }} | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: "adopt" | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Bump version | |
id: compute_version | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
REPO_OWNER: fabricepipart1a | |
RELEASE_BRANCHES: main | |
DEFAULT_BRANCH: main | |
DEFAULT_BUMP: patch | |
DRY_RUN: true | |
- name: Build Maven and Docker | |
env: | |
VERSION: ${{ steps.compute_version.outputs.new_tag }} | |
run: | | |
mvn -B -U versions:set -DnewVersion=${VERSION} &> /dev/null | |
mvn -B -U clean verify | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
if: ${{ github.event_name != 'pull_request' }} | |
env: | |
VERSION: ${{ steps.compute_version.outputs.new_tag }} | |
with: | |
commit_message: Tag new version ${{ env.VERSION }} | |
file_pattern: 'pom.xml' | |
tagging_message: ${{ env.VERSION }} |