From 43ca29393b580b736a00e3e1248a38e91779e584 Mon Sep 17 00:00:00 2001 From: itsankit-google Date: Fri, 14 Oct 2022 22:30:24 +0530 Subject: [PATCH] add cache github action to maven deploy workflow --- .github/workflows/deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4e495246c..d3eeb5b60 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,6 +41,14 @@ jobs: path: e2e ref: ${{ inputs.ref }} + - name: Cache + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-cdap-e2e-framework-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven-${{ github.workflow }} + - name: Import GPG key run: | echo "$GPG_PRIVATE_KEY" > private.key