Skip to content

Commit b36974b

Browse files
committed
Add matrix to generate reports for several repos
Signed-off-by: David Schall <[email protected]>
1 parent a22ca59 commit b36974b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/vhive-repo-stats.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,28 @@ on:
88

99
jobs:
1010
j1:
11-
name: vhive-repo-stats
11+
name: repo-stats
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
# The repositories to generate reports for.
16+
statsRepo: ['ease-lab/vhive', 'ease-lab/vSwarm', 'ease-lab/vSwarm-u']
17+
# Do not cancel&fail all remaining jobs upon first job failure.
18+
fail-fast: false
19+
# Help avoid commit conflicts. Note(JP): this should not be
20+
# necessary anymore, feedback appreciated
21+
max-parallel: 1
1322
steps:
1423
- name: GHRS
15-
uses: jgehrcke/github-repo-stats@HEAD
24+
uses: jgehrcke/github-repo-stats@RELEASE
1625
with:
1726
# Define the target repository, the repo to fetch
1827
# stats for and to generate the report for.
1928
# Leave this undefined when stats repository
2029
# and data repository should be the same.
21-
repository: ease-lab/vhive
30+
repository: ${{ matrix.statsRepo }}
2231
# Required token privileges: Can read the target
2332
# repo, and can push to the repository this
2433
# workflow file lives in (to store data and
2534
# the report files).
26-
ghtoken: ${{ secrets.ghrs_github_api_token }}
35+
ghtoken: ${{ secrets.ghrs_github_api_token }}

0 commit comments

Comments
 (0)