From 4562ae68ae7c4255b5cbba6400caca961172dfb8 Mon Sep 17 00:00:00 2001 From: Ugur Cenar Date: Fri, 27 Oct 2023 14:04:23 +0200 Subject: [PATCH] Gjenbrukbar github workflow --- .github/workflows/dependabot.yaml | 5 ++--- .github/workflows/pr.yaml | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependabot.yaml b/.github/workflows/dependabot.yaml index eb3310140..189135279 100644 --- a/.github/workflows/dependabot.yaml +++ b/.github/workflows/dependabot.yaml @@ -7,7 +7,6 @@ on: - 'dependabot/**' env: - GITHUB_USERNAME: x-access-token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: @@ -22,8 +21,8 @@ jobs: distribution: 'temurin' - uses: actions/cache@v3 with: - path: ~/.m2 + path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven- - - run: mvn -B -e --settings .m2/maven-settings.xml clean test + - run: mvn -B -e clean test diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index c27e418d4..3460495d2 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,7 +8,6 @@ on: - '!dependabot/**' env: - GITHUB_USERNAME: x-access-token GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: