Skip to content

Commit

Permalink
ci: use $GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed Oct 3, 2024
1 parent d9536f1 commit 6a068ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trivy-action-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
## To avoid the trivy-db becoming outdated, we save the cache for one day
- name: Get data
id: date
run: echo "CACHE_DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV
run: echo "date=$(date +%Y-%m-%d)" >> $GITHUB_OUTPUT

- name: Restore trivy cache
uses: actions/cache@v4
with:
path: cache/db
key: trivy-cache-${{ env.CACHE_DATE }}
key: trivy-cache-${{ date.date }}
restore-keys:
trivy-cache-

Expand Down

0 comments on commit 6a068ad

Please sign in to comment.