Skip to content

Commit ed99636

Browse files
fix: Fix formatting and update download stats workflow
1 parent baeba35 commit ed99636

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/download-stats.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
name: Update Download Stats
22

3-
on:
3+
on:
44
schedule:
55
- cron: "0 */6 * * *"
66
workflow_dispatch:
77

8-
jobs:
8+
jobs:
99
stats:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v4
1313

1414
- name: Ensure stats directory exists
1515
run: mkdir -p stats
1616

17-
- name: Fetch release downloads
18-
run: |
17+
- name: Fetch release downloads
18+
run: |
1919
curl -s https://api.github.com/repos/${{ github.repository }}/releases \
2020
| jq '
2121
[
2222
.[] |
2323
{
24-
tag: .tag_name,
25-
total: (.assets | map(.download_count) | add)
24+
tag: . tag_name,
25+
total: (.assets | map(.download_count) | add)
2626
}
2727
]
2828
' > stats/downloads. json

0 commit comments

Comments
 (0)