name: cache
description: cache
runs:
  using: "composite"
  steps:

    - uses: Wandalen/wretry.action@master
      with:
        attempt_limit: 3
        action: buildjet/cache@v3
        with: |
          path: ~/.m2/repository
          key: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-cache-${{ env.BRANCH_NAME }}-${{ hashFiles('**/pom.xml') }}
        
