Skip to content

use Jenkins commit author #3

use Jenkins commit author

use Jenkins commit author #3

name: test, format, and push
on:
push:
branches: [dev]
permissions:
contents: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Test and format the changes
run: mvn --batch-mode clean verify -Dgpg.skip=true
- name: Commit formatted changes
run: |
git -c "user.name=Jenkins" -c "[email protected]" commit -a --amend --no-edit
git push origin HEAD:main