Skip to content

Commit

Permalink
Fix hisel cache
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Oct 20, 2024
1 parent b754dff commit 740a8ec
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ jobs:
- name: checkout
uses: actions/checkout@v4

- name: Cache hishel
uses: actions/cache@v4
with:
path: .hishel.sqlite
key: ${{ runner.os }}-hishel-${{ hashFiles('links/*.json') }}

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
Expand Down Expand Up @@ -69,11 +63,24 @@ jobs:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Download hishel cache
uses: actions/cache/restore@v4
id: hisel-cache
with:
path: .hishel.sqlite
key: ${{ runner.os }}-hishel-${{ hashFiles('links/*.json') }}

- name: Generate Repo Metadata
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: uv run pypi-data load-repos repos-with-packages.jsonl.gz links/

- name: Upload hishel cache
uses: actions/cache/restore@v4
with:
path: .hishel.sqlite
key: ${{ steps.hisel-cache.outputs.cache-primary-key }}

- uses: EndBug/add-and-commit@v9
with:
add: links/*
Expand Down

0 comments on commit 740a8ec

Please sign in to comment.