Skip to content

Commit

Permalink
Merge pull request jacobfilik#22 from jacobfilik/filterdata
Browse files Browse the repository at this point in the history
filtered checkout of data
  • Loading branch information
jacobfilik authored Oct 7, 2024
2 parents c6a81a5 + 0bde931 commit 6ca30d8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ jobs:
data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Checkout database build script
uses: actions/checkout@v4
with:
sparse-checkout: |
scripts/build_database.py
sparse-checkout-cone-mode: false
- uses: actions/checkout@v3
- name: Filtered checkout of data
uses: actions/checkout@v4
with:
filter: |
${{ env.DATA_PATH_IN_REPO }}/*
sparse-checkout: |
${{ env.DATA_PATH_IN_REPO }}
repository: ${{ env.DATA_REPO }}
path: xdidata
path: tmp_xdidata
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand All @@ -65,6 +67,8 @@ jobs:
ls
- name: Build db
run: |
mkdir xdidata
mv tmp_xdidata/${{ env.DATA_PATH_IN_REPO }}/* xdidata/
python scripts/build_database.py
- name: Uploading data
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 6ca30d8

Please sign in to comment.