From e9f22d374bb5ac645f8e3e788d1c04232f57ee2a Mon Sep 17 00:00:00 2001 From: neil molina Date: Mon, 20 Mar 2023 20:26:06 +0800 Subject: [PATCH] fix packages data --- .github/workflows/cd.yml | 4 +++- .github/workflows/staging.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 48ee337..4ce4c1d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -24,7 +24,9 @@ jobs: - uses: actions/checkout@v3 - - run: | + - name: add packages data + run: | + rm ./src/data/packages.json curl https://api.tea.xyz/v1/packages -H "Accept: application/json" >> ./src/data/packages.json - name: Create Package Detail Pages from packages.json diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index a9ffd99..a73d345 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -35,7 +35,9 @@ jobs: echo "relativeurls = true" >>config.toml working-directory: src - - run: | + - name: add packages data + run: | + rm ./src/data/packages.json curl https://api.tea.xyz/v1/packages -H "Accept: application/json" >> ./src/data/packages.json - name: Create Package Detail Pages from packages.json