From 02b6655f552fb810323480c35adfc569a059a308 Mon Sep 17 00:00:00 2001 From: Sajad Jalilian Date: Thu, 4 Jan 2024 20:34:22 +0330 Subject: [PATCH] new test --- .github/workflows/daily_update.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/daily_update.yml b/.github/workflows/daily_update.yml index 7406cc6..d4ec047 100644 --- a/.github/workflows/daily_update.yml +++ b/.github/workflows/daily_update.yml @@ -38,12 +38,18 @@ jobs: - name: Download Data 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 - name: Replace existing file run: | cd data - rm jalali_all.min.json + if [ -f jalali_all.min.json ]; then + rm jalali_all.min.json + else + echo "The file does not exist." + fi + mv jalali_all.min-new.json jalali_all.min.json - name: Setup Pages