From 394e8143b59e5915084cfc586bc78c1e949d726a Mon Sep 17 00:00:00 2001 From: Sajad Jalilian Date: Thu, 4 Jan 2024 20:55:16 +0330 Subject: [PATCH] fix file download --- .github/workflows/daily_update.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/daily_update.yml b/.github/workflows/daily_update.yml index 2aa9397..81fe161 100644 --- a/.github/workflows/daily_update.yml +++ b/.github/workflows/daily_update.yml @@ -37,18 +37,18 @@ jobs: run: | pwd ls - curl -o data/jalali_all.min-new.json https://github.com/SamadiPour/rial-exchange-rates-archive/releases/latest/download/jalali_all.min.json + curl -L -o data/jalali_imp.min-new.json https://github.com/SamadiPour/rial-exchange-rates-archive/releases/latest/download/jalali_imp.min.json - name: Replace existing file run: | cd data - if [ -f jalali_all.min.json ]; then - rm jalali_all.min.json + if [ -f jalali_imp.min.json ]; then + rm jalali_imp.min.json else echo "The file does not exist." fi - mv jalali_all.min-new.json jalali_all.min.json + mv jalali_imp.min-new.json jalali_imp.min.json - name: Setup Pages uses: actions/configure-pages@v4