From bff85b6dd0790d95b07c3570104fd23d4a22b00f Mon Sep 17 00:00:00 2001 From: alifnaufalyasin Date: Fri, 20 Oct 2023 22:22:47 +0700 Subject: [PATCH] update --- .github/workflows/deploy.yml | 2 +- scripts/script.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0d14c7fd..a51d1b5c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,7 +28,7 @@ jobs: - name: run python script to convert csv to json run: | python ./scripts/script.py - cp ./dataMember.json ./data/dataMember.json + cp ./scripts/dataMember.json ./data/dataMember.json - name: Build 🔧 run: | diff --git a/scripts/script.py b/scripts/script.py index 01f3e35f..0723fb51 100644 --- a/scripts/script.py +++ b/scripts/script.py @@ -13,9 +13,9 @@ def csv_to_json(csv_file, json_file): if __name__ == "__main__": # Replace 'input.csv' with the path of your CSV file - csv_file_path = 'dataMember.csv' + csv_file_path = './scripts/dataMember.csv' # Replace 'output.json' with the desired path for the JSON output file - json_file_path = 'dataMember.json' + json_file_path = './scripts/dataMember.json' csv_to_json(csv_file_path, json_file_path)