Skip to content

Commit

Permalink
fix file download
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajad Jalilian committed Jan 4, 2024
1 parent f7b0f61 commit 394e814
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/daily_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 394e814

Please sign in to comment.