-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (76 loc) · 2.53 KB
/
dashboard.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: dashboard
on:
schedule:
# Runs every 5 hours
- cron: "0 0/5 * * *"
push:
branches: [ "main" ]
paths:
- '.github/workflows/dashboard.yml'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/dashboard.yml'
workflow_dispatch:
jobs:
ohpm-dashboard-job:
strategy:
max-parallel: 1
matrix:
include:
- filename: 'README.md'
sort_field: 'publishTime'
sort_mode: 'asc'
- filename: 'ohpm_packages/sort_by_ohpmLikes.md'
sort_field: 'ohpmLikes'
sort_mode: 'desc'
- filename: 'ohpm_packages/sort_by_ohpmDownloads.md'
sort_field: 'ohpmDownloads'
sort_mode: 'desc'
- filename: 'ohpm_packages/sort_by_githubStars.md'
sort_field: 'githubStars'
sort_mode: 'desc'
runs-on: ubuntu-latest
name: 'ohpm-dashboard :: ${{ matrix.filename }} :: ${{ matrix.sort_field }} :: ${{ matrix.sort_mode }}'
steps:
- name: run ohpm-dashboard
uses: AmosHuKe/ohpm-dashboard@main
with:
github_token: ${{ secrets.GH_TOKEN }}
github_repo: "https://github.com/HarmonyCandies/packages"
filename: ${{ matrix.filename }}
publisher_list: "6542179b6dad4e55f6635764"
package_list: ""
sort_field: ${{ matrix.sort_field }}
sort_mode: ${{ matrix.sort_mode }}
pub-dashboard-job:
needs: ohpm-dashboard-job
strategy:
max-parallel: 1
matrix:
include:
- filename: 'README.md'
sort_field: 'published'
sort_mode: 'asc'
- filename: 'pub_packages/sort_by_pubLikes.md'
sort_field: 'pubLikes'
sort_mode: 'desc'
- filename: 'pub_packages/sort_by_pubDownloads.md'
sort_field: 'pubDownloads'
sort_mode: 'desc'
- filename: 'pub_packages/sort_by_githubStars.md'
sort_field: 'githubStars'
sort_mode: 'desc'
runs-on: ubuntu-latest
name: 'pub-dashboard :: ${{ matrix.filename }} :: ${{ matrix.sort_field }} :: ${{ matrix.sort_mode }}'
steps:
- name: run pub-dashboard
uses: AmosHuKe/pub-dashboard@main
with:
github_token: ${{ secrets.GH_TOKEN }}
github_repo: "https://github.com/HarmonyCandies/packages"
filename: ${{ matrix.filename }}
publisher_list: "harmonycandies.com"
package_list: ""
sort_field: ${{ matrix.sort_field }}
sort_mode: ${{ matrix.sort_mode }}