Commit 767cad6 1 parent a314230 commit 767cad6 Copy full SHA for 767cad6
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Check Updates
2
2
3
3
on :
4
4
schedule :
5
- - cron : " 0 0 * * *" # Runs every day at midnight UTC
5
+ - cron : " 0 3 * * *" # Runs every day at 3 AM UTC
6
6
7
7
jobs :
8
8
check_updates :
@@ -16,13 +16,13 @@ jobs:
16
16
run : |
17
17
curl -o optimalfraction.json https://charts-core.peercoinexplorer.net/optimalfraction.json
18
18
19
- - name : Check if the second-to-last day is included
19
+ - name : Check if yesterday is included
20
20
run : |
21
21
TODAY=$(date -u +"%Y-%m-%d")
22
- SECOND_LAST_DAY =$(date -u -d "$TODAY - 2 days " +"%Y-%m-%d")
23
- if grep -q "$SECOND_LAST_DAY " optimalfraction.json; then
24
- echo "The second-to-last day ($SECOND_LAST_DAY ) is included in the JSON data."
22
+ YESTERDAY =$(date -u -d "$TODAY - 1 day " +"%Y-%m-%d")
23
+ if grep -q "$YESTERDAY " optimalfraction.json; then
24
+ echo "Yesterday ($YESTERDAY ) is included in the JSON data."
25
25
else
26
- echo "The second-to-last day ($SECOND_LAST_DAY ) is NOT included in the JSON data."
26
+ echo "Yesterday ($YESTERDAY ) is NOT included in the JSON data."
27
27
exit 1
28
28
fi
You can’t perform that action at this time.
0 commit comments