Skip to content

Commit

Permalink
use matrix for multiple repos
Browse files Browse the repository at this point in the history
  • Loading branch information
vot4anto committed Sep 20, 2024
1 parent a384ceb commit 2865458
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/github-repo-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ on:
workflow_dispatch: # Allow for running this manually.

jobs:
j1:
collect_data_gem:
name: github-repo-stats
runs-on: ubuntu-latest
strategy:
matrix:
# The repositories to generate reports for.
statsRepo: ['gem/oq-engine', 'gem/oq-irmt-qgis', 'gem/global_exposure_model', 'gem/earthquake-scenarios']
# Do not cancel&fail all remaining jobs upon first job failure.
fail-fast: false
max-parallel: 1
steps:
- name: run-ghrs
- name: run_collection
# Use latest release.
uses: jgehrcke/github-repo-stats@RELEASE
with:
repository: gem/oq-engine
repository: ${{ matrix.statsRepo }}
ghtoken: ${{ secrets.STATS_GITHUB_API_TOKEN }}

0 comments on commit 2865458

Please sign in to comment.