From 34a3c706f1a0b3459665234bde66c794767c4d3d Mon Sep 17 00:00:00 2001 From: BetterBox <53705390+Grzybol@users.noreply.github.com> Date: Sun, 17 Mar 2024 02:03:55 +0100 Subject: [PATCH] Update maven.yml - autorelease --- .github/workflows/maven.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8cbb8b5..2fa8f4a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,15 +3,16 @@ name: Java CI with Maven, Auto-Versioning, and Release on: push: branches: [ "master" ] - +permissions: + contents: write jobs: build-and-release: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 with: fetch-depth: 0 # To ensure tags are fetched as well + token: ${{ secrets.GITHUB_TOKEN }} # Użyj GITHUB_TOKEN do checkout - name: Set up JDK 17 uses: actions/setup-java@v3 with: