From 202a06ce5c4cbf6c7834e7c2795f365f38dd4905 Mon Sep 17 00:00:00 2001 From: FoxStorm1 <69159547+Yeetov@users.noreply.github.com> Date: Sun, 24 Sep 2023 18:01:31 +0100 Subject: [PATCH] Now copies data.json to datadesktop.json --- .github/workflows/generate-db.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate-db.yml b/.github/workflows/generate-db.yml index 9879d9c9..646cb2b2 100644 --- a/.github/workflows/generate-db.yml +++ b/.github/workflows/generate-db.yml @@ -31,6 +31,10 @@ jobs: npm i -g pnpm pnpm i + - name: Copy data.json to datadesktop.json + run: | + cp db/data.json db/datadesktop.json + - name: Update dist.css id: update-dist-css run: | @@ -80,7 +84,7 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - # Commit and push the updated dist.css file - git add db/dist.css - git commit -m "chore(db): update dist.css (${{ github.sha || 'manual trigger' }})" || true + # Commit and push the updated dist.css and datadesktop.json files + git add db/dist.css db/datadesktop.json + git commit -m "chore(db): update dist.css and datadesktop.json (${{ github.sha || 'manual trigger' }})" || true git push