Skip to content

Commit

Permalink
Sanitize and truncate image data file
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored Jan 14, 2025
1 parent c8d58eb commit 25c5366
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ghp-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ jobs:
steps:
- name: Download File
run: |
curl https://storage.googleapis.com/ghp-stats/ublue-os/data.json --output ./ghp-stats.json
curl https://storage.googleapis.com/ghp-stats/ublue-os/data.json --output ./ghp-stats-full.json
working-directory: ${{ github.workspace }}

- name: Truncate and Clean File
run: |
jq 'to_entries | map(select(.value != {})) | .[-90:] | from_entries' ghp-stats-full.json > ghp-stats.json
working-directory: ${{ github.workspace }}

- name: Write image_list.json to Repostiory
Expand Down

0 comments on commit 25c5366

Please sign in to comment.