Skip to content

Commit

Permalink
maven.yml Update
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkarth committed Dec 8, 2023
1 parent 7cccf6f commit 2ddd391
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 2ddd391

Please sign in to comment.