2021-10-01 22:59:09 +03:00
|
|
|
# Generates series of diagrams and visualizations
|
|
|
|
name: 📊 Generate Repo Stats
|
2021-09-13 00:31:49 +03:00
|
|
|
on:
|
|
|
|
workflow_dispatch: # Manual dispatch
|
|
|
|
schedule:
|
|
|
|
- cron: '0 1 * * 0' # At 01:00 on Sunday.
|
2021-10-01 22:59:09 +03:00
|
|
|
|
2021-09-13 00:31:49 +03:00
|
|
|
jobs:
|
2021-10-01 22:59:09 +03:00
|
|
|
# File structure chart
|
|
|
|
file-structure:
|
2021-09-13 00:31:49 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@master
|
2021-09-13 20:29:31 +03:00
|
|
|
- name: Generate File Structure Diagram
|
2021-09-13 00:31:49 +03:00
|
|
|
uses: githubocto/repo-visualizer@0.7.1
|
|
|
|
with:
|
|
|
|
root_path: 'src/'
|
|
|
|
output_file: docs/assets/repo-visualization.svg
|
|
|
|
excluded_paths: dist,node_modules
|
|
|
|
commit_message: ':yellow_heart: Updates repo diagram'
|
2021-09-13 20:29:31 +03:00
|
|
|
branch: master
|
2021-10-01 22:59:09 +03:00
|
|
|
|
|
|
|
# Hercules git branching stats
|
|
|
|
git-stats:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@master
|
|
|
|
with:
|
2021-10-03 23:40:33 +03:00
|
|
|
fetch-depth: 0
|
2021-10-01 22:59:09 +03:00
|
|
|
- name: Hercules
|
2021-10-03 23:40:33 +03:00
|
|
|
uses: src-d/hercules@master
|
2021-10-01 23:13:30 +03:00
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: hercules_charts
|
|
|
|
path: hercules_charts.tar
|
2021-10-01 22:59:09 +03:00
|
|
|
|
|
|
|
# Lowlighter metrics community metrics
|
|
|
|
community-stats:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@master
|
2021-09-13 20:29:31 +03:00
|
|
|
- name: Generate Repo Metrics
|
|
|
|
uses: lowlighter/metrics@latest
|
|
|
|
with:
|
2021-09-14 00:08:40 +03:00
|
|
|
token: ${{ secrets.LISSY93_PAT }}
|
2021-11-10 21:37:14 +03:00
|
|
|
committer_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
2021-09-13 20:29:31 +03:00
|
|
|
committer_branch: master
|
|
|
|
committer_message: ':purple_heart: Adds repo metrics'
|
|
|
|
filename: docs/assets/repo-metrics.*
|
|
|
|
template: classic
|
|
|
|
user: Lissy93
|
|
|
|
repo: dashy
|
|
|
|
delay: 5
|
2021-10-01 22:59:09 +03:00
|
|
|
|
2021-09-13 20:29:31 +03:00
|
|
|
- name: Generate License Metrics
|
|
|
|
uses: lowlighter/metrics@latest
|
|
|
|
with:
|
2021-09-14 00:08:40 +03:00
|
|
|
token: ${{ secrets.LISSY93_PAT }}
|
2021-11-10 21:37:14 +03:00
|
|
|
committer_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
2021-09-13 20:29:31 +03:00
|
|
|
committer_branch: master
|
|
|
|
committer_message: ':purple_heart: Adds license metrics'
|
|
|
|
filename: docs/assets/license-metrics.*
|
|
|
|
template: repository
|
|
|
|
user: Lissy93
|
|
|
|
repo: dashy
|
|
|
|
delay: 5
|
|
|
|
plugin_licenses: yes
|
|
|
|
plugin_licenses_setup: yarn build
|
|
|
|
plugin_licenses_ratio: yes
|
|
|
|
plugin_licenses_legal: yes
|
|
|
|
|
|
|
|
- name: Generate Contributor Metrics
|
|
|
|
uses: lowlighter/metrics@latest
|
|
|
|
with:
|
2021-09-14 00:08:40 +03:00
|
|
|
token: ${{ secrets.LISSY93_PAT }}
|
2021-11-10 21:37:14 +03:00
|
|
|
committer_token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
|
2021-09-13 20:29:31 +03:00
|
|
|
committer_branch: master
|
|
|
|
committer_message: ':purple_heart: Adds contributor metrics'
|
|
|
|
filename: docs/assets/controbutor-metrics.*
|
|
|
|
user: Lissy93
|
|
|
|
repo: dashy
|
|
|
|
delay: 5
|
|
|
|
plugin_contributors: yes
|
|
|
|
plugin_contributors_base: ""
|
|
|
|
plugin_contributors_head: master
|
|
|
|
plugin_contributors_ignored: bot
|
|
|
|
plugin_contributors_contributions: yes
|
|
|
|
plugin_contributors_sections: contributors
|
2021-10-01 23:13:30 +03:00
|
|
|
|