diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9698183..8477dc8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -43,6 +43,10 @@ jobs: java-version: '8' distribution: 'corretto' cache: maven + - name: Configure Git identity + run: | + git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git config --global user.name "${GITHUB_ACTOR}" - name: Create Release run: | VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) @@ -51,7 +55,7 @@ jobs: git push origin "$VERSION" publish: - if: github.event_name == 'push' && github.repository == 'refs/heads/main' + if: github.repository == 'refs/heads/main' runs-on: ubuntu-latest permissions: contents: read