diff --git a/.github/workflows/mvn-verify-check.yml b/.github/workflows/mvn-verify-check.yml index fead8ef63bd..887c05a775b 100644 --- a/.github/workflows/mvn-verify-check.yml +++ b/.github/workflows/mvn-verify-check.yml @@ -61,8 +61,8 @@ jobs: - name: Generate daily cache key id: generateCacheKey run: | - echo "DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - cacheKey="${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.event.pull_request.base.ref }}-${{ DATE }}" + currentDate=$(date +'%Y-%m-%d') + cacheKey="${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.event.pull_request.base.ref }}-${{ currentDate }}" echo "dailyCacheKey=$cacheKey" | tee $GITHUB_ENV $GITHUB_OUTPUT - name: Cache local Maven repository uses: actions/cache@v3