You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2021/12/15 14:31:47 UTC

[archiva-redback-core] branch master updated: simplify gh action

This is an automated email from the ASF dual-hosted git repository.

olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva-redback-core.git


The following commit(s) were added to refs/heads/master by this push:
     new b6f1a81  simplify gh action
b6f1a81 is described below

commit b6f1a81128e7a9f51aebab4d238bacdc9cefea0e
Author: Olivier Lamy <ol...@apache.org>
AuthorDate: Wed Dec 15 15:29:05 2021 +0100

    simplify gh action
---
 .github/workflows/maven.yml | 18 ++++--------------
 1 file changed, 4 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c3e55b6..4d212c3 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -19,11 +19,9 @@ name: GitHub CI
 
 on:
   push:
-    branches:
-    - master
+    branches-ignore:
+      - dependabot/**
   pull_request:
-    branches:
-    - master
 
 jobs:
   build:
@@ -40,20 +38,12 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v2
 
-      - name: Set up cache for ~./m2/repository
-        uses: actions/cache@v2.1.7
-        with:
-          path: ~/.m2/repository
-          key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }}
-          restore-keys: |
-            maven-${{ matrix.os }}-java${{ matrix.java }}-
-            maven-${{ matrix.os }}-
-
       - name: Set up JDK
-        uses: actions/setup-java@v2
+        uses: actions/setup-java@v2.3.1
         with:
           distribution: adopt
           java-version: ${{ matrix.java }}
+          cache: 'maven'
 
       - name: Build with Maven
         run: mvn -e -B -V verify