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

zregvart pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kameleon.git


The following commit(s) were added to refs/heads/main by this push:
     new 9aa35fa  chore: add Maven repository cache for GH Actions
9aa35fa is described below

commit 9aa35fa8617f8a95b344fe8159490ad58b173f73
Author: Zoran Regvart <zregv...@apache.org>
AuthorDate: Fri Jul 9 10:33:00 2021 +0200

    chore: add Maven repository cache for GH Actions
---
 .github/workflows/main.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 8200a66..cf5f110 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -28,6 +28,15 @@ jobs:
         with:
           java-version: 11
 
+      - name: Cache local Maven repository
+        uses: actions/cache@v2
+        with:
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/camel/kameleon
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: ${{ runner.os }}-maven-
+
       - name: Build Kamelet Catalogue
         run: mvn install -f camel-kamelets
 

Reply via email to