From 723a40f90e41e3e09545e6ec94a72fa2889ee7dc Mon Sep 17 00:00:00 2001 From: Sajad Jalilian Date: Thu, 4 Jan 2024 19:14:59 +0330 Subject: [PATCH] test --- .github/workflows/daily_update.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/daily_update.yml b/.github/workflows/daily_update.yml index 4dec4e0..d92936c 100644 --- a/.github/workflows/daily_update.yml +++ b/.github/workflows/daily_update.yml @@ -1,9 +1,11 @@ name: Daily Data Update on: - schedule: - # - cron: "0 1 * * *" - - cron: "* * * * *" + # schedule: + # # - cron: "0 1 * * *" + # - cron: "* * * * *" + push: + branches: main jobs: download: @@ -15,9 +17,11 @@ jobs: - name: Download file run: | + pwd 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: | - rm data/jalali_all.min.json - mv data/jalali_all.min-new.json data/jalali_all.min.json + cd data + rm jalali_all.min.json + mv jalali_all.min-new.json jalali_all.min.json