diff --git a/.github/workflows/dependency-vulnerabilities.yml b/.github/workflows/dependency-vulnerabilities.yml index ec413e0..cb3a3d9 100644 --- a/.github/workflows/dependency-vulnerabilities.yml +++ b/.github/workflows/dependency-vulnerabilities.yml @@ -25,15 +25,9 @@ jobs: - uses: actions/checkout@v4 - uses: actions/cache@v4 with: - path: | - ./.m2 - - # store as today's cache - key: "nvd-clojure-${{ steps.date.outputs.date }}" - # if today's cache does not yet exist, fetch from whatever iss - # the most recent cache for nvd-clojure - # and update that - restore-keys: "nvd-clojure-" + path: "~/.m2" + key: "nvd-${{ steps.date.outputs.date }}" + restore-keys: "nvd-" - name: Install clj runtime run: .github/workflows/install-binaries.sh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index da5108e..58cc1ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,10 +17,15 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Get current date + id: date + run: echo "date=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 with: path: "~/.m2" - key: "deps-${{ hashFiles('deps.edn') }}" + key: "test-${{ steps.date.outputs.date }}" + restore-keys: "test-" - name: Install packages run: |