-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from louwers/workflow
Add workflow for fetching repo stats
- Loading branch information
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: store-repostats | ||
concurrency: store-repostats | ||
|
||
on: | ||
schedule: | ||
- cron: "0 23 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
store-repostats: | ||
name: store-repostats | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# The repositories to generate reports for | ||
statsRepo: ['maplibre/maplibre-native', 'maplibre/maplibre-gl-native-distribution'] | ||
fail-fast: false | ||
max-parallel: 1 | ||
steps: | ||
- name: run-ghrs | ||
uses: jgehrcke/github-repo-stats@RELEASE | ||
with: | ||
repository: ${{ matrix.statsRepo }} | ||
ghtoken: ${{ secrets.ghrs_github_api_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
# repo-stats | ||
A repository to get statistics on other maplibre repos | ||
# Repository Statistics | ||
|
||
This repository gathers statistics using [github-repo-stats](https://github.com/jgehrcke/github-repo-stats). This is done to overcome a limitation of GitHub, which by default only shows data for the past 14 days. | ||
|
||
Raw data is available on the [github-repo-stats](https://github.com/maplibre/repo-stats/tree/github-repo-stats) branch. | ||
|
||
Create a PR that modifies `.github/workflows/store-repostats.yml` if you would like to fetch data for another repo. |