Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/health-check-integrity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,22 @@ jobs:
run: |
cd api/emission/co2

cat << EOF > .ignore-grep
2025/11/21/DK1.json has incorrect duration: 82500
2025/11/23/DK1.json has incorrect duration: 3300
2025/11/21/DK2.json has incorrect duration: 82500
2025/11/23/DK2.json has incorrect duration: 3300
EOF

find 2??? -type f -mindepth 3 -maxdepth 3 -name "${{ matrix.zone }}.json" | sort | tail -n +2 | head -n-1 | while read file; do
duration=$(jq '[.[].timestamp] | max as $max | min as $min | $max - $min' < $file)
if [ $duration != 86100 ]; then
echo "$file has incorrect duration: $duration"
fi
done | tee ../../../${{ matrix.zone }}
done | tee ../../../${{ matrix.zone }}.raw
echo "--- filtered output below ---"
cat ../../../${{ matrix.zone }}.raw | (grep -vf .ignore-grep || true) > ../../../${{ matrix.zone }}

- uses: actions/upload-artifact@v6
with:
name: emission-${{ matrix.zone }}
Expand Down
Loading