-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial workflow to collect github repository stats with readme update for getting the list of public cicsdev repos Signed-off-by: James Taylor <[email protected]>
- Loading branch information
Showing
2 changed files
with
106 additions
and
0 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,91 @@ | ||
name: fetch-repository-stats | ||
concurrency: fetch-repository-stats | ||
|
||
on: | ||
schedule: | ||
- cron: "0 23 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
run-ghrs-with-matrix: | ||
name: github-repo-stats | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# The repositories to generate reports for. | ||
statsRepo: | ||
- "cicsdev/cicstg-jca-liberty-sample" | ||
- "cicsdev/cicstg-client-blocker" | ||
- "cicsdev/cicstg-cloud-monitor" | ||
- "cicsdev/cics-java-liberty-jaxrs" | ||
- "cicsdev/cics-java-liberty-jaxws" | ||
- "cicsdev/cics-java-osgi-mq-jms" | ||
- "cicsdev/cics-java-liberty-appstate" | ||
- "cicsdev/cics-java-recgen" | ||
- "cicsdev/cics-java-liberty-globalhandler" | ||
- "cicsdev/cics-java-j2cprog" | ||
- "cicsdev/cics-async-api-fetch-child-example" | ||
- "cicsdev/cics-async-api-credit-card-application-example" | ||
- "cicsdev/cics-cpsm-wlm-trace" | ||
- "cicsdev/cics-explorer-access-level-policing" | ||
- "cicsdev/cics-java-liberty-restapp" | ||
- "cicsdev/cics-async-api-channel-usage-example" | ||
- "cicsdev/cics-bundle-scripts" | ||
- "cicsdev/cics-java-batch" | ||
- "cicsdev/cics-java-liberty-link" | ||
- "cicsdev/cics-java-jcics-samples" | ||
- "cicsdev/cics-event-consumer" | ||
- "cicsdev/cics-ipic-heartbeat-disabler" | ||
- "cicsdev/cics-async-fetch-variation-example" | ||
- "cicsdev/cics-java-liberty-restapp-ext" | ||
- "cicsdev/cics-java-liberty-tai-jwt" | ||
- "cicsdev/cics-java-liberty-mq-jms" | ||
- "cicsdev/cics-exci-64bit-connector" | ||
- "cicsdev/cics-nodejs-exci-module" | ||
- "cicsdev/cics-nodejs-exci-webapp-sample" | ||
- "cicsdev/zospt-scripts" | ||
- "cicsdev/cics-java-liberty-jdbc" | ||
- "cicsdev/cics-java-liberty-sqlj" | ||
- "cicsdev/cics-java-liberty-ejb" | ||
- "cicsdev/cics-async-api-redbooks" | ||
- "cicsdev/cics-java-liberty-employee-db" | ||
- "cicsdev/cics-kerberos-sample" | ||
- "cicsdev/cpsm-cicsplex-name-detector" | ||
- "cicsdev/cics-java-osgi-ds" | ||
- "cicsdev/cics-java-liberty-jaspic-jwt" | ||
- "cicsdev/cics-java-liberty-loans-and-scoring" | ||
- "cicsdev/cics-nodejs-invoke" | ||
- "cicsdev/cics-java-liberty-app-deployment" | ||
- "cicsdev/cics-policy-samples" | ||
- "cicsdev/cics-java-jcicsx-samples" | ||
- "cicsdev/cics-java-liberty-springboot-jcics" | ||
- "cicsdev/cics-java-liberty-springboot-security" | ||
- "cicsdev/blog-cics-java-mq-jms-osgi" | ||
- "cicsdev/blog-cics-java-osgi-classloading" | ||
- "cicsdev/blog-cics-java-batch" | ||
- "cicsdev/blog-cics-java-jta-jdbc" | ||
- "cicsdev/blog-cics-java-liberty-ejb" | ||
- "cicsdev/blog-cics-java-osgi-best-practices" | ||
- "cicsdev/cics-java-liberty-springboot-transactions" | ||
- "cicsdev/cics-blog-sample-files" | ||
- "cicsdev/cics-java-liberty-springboot-link" | ||
- "cicsdev/cics-java-liberty-springboot-jdbc-multi" | ||
- "cicsdev/cics-java-liberty-springboot-jdbc" | ||
- "cicsdev/cics-java-liberty-springboot-jpa" | ||
- "cicsdev/cics-java-liberty-springboot-asynchronous" | ||
- "cicsdev/cics-genapp" | ||
- "cicsdev/cics-java-liberty-springboot-jms" | ||
- "cicsdev/cics-eventprocessing-java" | ||
- "cicsdev/base64" | ||
- "cicsdev/cics-banking-sample-application-cbsa" | ||
# Do not cancel&fail all remaining jobs upon first job failure. | ||
fail-fast: false | ||
# Help avoid commit conflicts. Note(JP): this should not be | ||
# necessary anymore, feedback appreciated | ||
max-parallel: 1 | ||
steps: | ||
- name: run-ghrs | ||
uses: jgehrcke/github-repo-stats@306db38ad131cab2aa5f2cd3062bf6f8aa78c1aa | ||
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,3 +1,18 @@ | ||
# repo-stats | ||
|
||
Download statistics for repos in the CICSDev org | ||
|
||
## TODO | ||
|
||
Get the list of repos automatically instead of hard coding it in the workflow | ||
|
||
For now, the following command will fetch a list of public repos for pasting in | ||
|
||
``` | ||
curl -L \ | ||
-H "Accept: application/vnd.github+json" \ | ||
-H "Authorization: Bearer $GITHUB_TOKEN" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | ||
"https://api.github.com/orgs/cicsdev/repos?per_page=100&type=public" | \ | ||
yq '[.[].full_name | select(. != "cicsdev/cicsdev.github.io")]' | ||
``` |