Skip to content

Commit

Permalink
Merge pull request #11669 from nanaya/ip2asn-cache-key
Browse files Browse the repository at this point in the history
Fix cache key for ip2asn
  • Loading branch information
notbakaneko authored Nov 21, 2024
2 parents 2ba5952 + 98daaa4 commit cd26bb5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,16 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Get current date
id: current-date
run: echo "today=$(date '+%Y%m%d')" >> "$GITHUB_OUTPUT"

- name: Cache ip2asn
uses: actions/cache@v4
with:
path: database/ip2asn/
key: ip2asn
key: ip2asn-${{ steps.current-date.outputs.today }}
restore-keys: ip2asn-

- run: ./build.sh

Expand Down

0 comments on commit cd26bb5

Please sign in to comment.