Skip to content

Commit

Permalink
fix bug of date
Browse files Browse the repository at this point in the history
Signed-off-by: YanxuanLiu <yanxuanl@nvidia.com>
  • Loading branch information
YanxuanLiu committed Nov 30, 2023
1 parent e86afdc commit a809c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/mvn-verify-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a809c96

Please sign in to comment.