We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8461f12 commit 595dafdCopy full SHA for 595dafd
.github/workflows/check_updates.yml
@@ -9,12 +9,12 @@ jobs:
9
runs-on: ubuntu-latest
10
11
steps:
12
- - name: Checkout repository
13
- uses: actions/checkout@v2
14
-
15
- name: Check if yesterday is included
16
run: |
17
curl -H "Cache-Control: no-cache" -o optimalfraction.json https://charts-core.peercoinexplorer.net/optimalfraction.json
+
+ jq empty optimalfraction.json || { echo "Invalid JSON"; exit 1; }
18
TODAY=$(date -u +"%Y-%m-%d")
19
YESTERDAY=$(date -u -d "$TODAY - 1 day" +"%Y-%m-%d")
20
if grep -q "$YESTERDAY" optimalfraction.json; then
0 commit comments