From 57e84f84dfb0f90f5dc5f481d93a33e237b04d47 Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Sun, 12 Jan 2025 12:36:24 +0700 Subject: [PATCH] change maven version and add permissions in action --- .gitea/workflows/maven.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/maven.yaml b/.gitea/workflows/maven.yaml index f4ce27e..d181f23 100644 --- a/.gitea/workflows/maven.yaml +++ b/.gitea/workflows/maven.yaml @@ -7,18 +7,20 @@ on: jobs: build: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout the repo uses: actions/checkout@v4 - name: Set up Maven uses: stCarolas/setup-maven@v5 with: - maven-version: '3.8.2' + maven-version: '3.9.9' - name: Set up JDK 23 uses: actions/setup-java@v4 with: java-version: 23 distribution: 'temurin' - cache: maven + cache: 'maven' - name: Build with Maven run: mvn -B package --file pom.xml \ No newline at end of file