From 6b8262c12ee4ffdeb036f78e6dabecc3b9fafa28 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Fri, 1 Oct 2021 20:59:09 +0100 Subject: [PATCH] :building_construction: Updates/ adds actions for generating repo reports and info --- .github/workflows/generate-credits.yml | 15 ++++++++++ .github/workflows/repo-visualization.yml | 34 +++++++++++++++++++---- .github/workflows/save-repo-analytics.yml | 15 ++++++++++ 3 files changed, 58 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/save-repo-analytics.yml diff --git a/.github/workflows/generate-credits.yml b/.github/workflows/generate-credits.yml index e7b02aa0..5d23fe35 100644 --- a/.github/workflows/generate-credits.yml +++ b/.github/workflows/generate-credits.yml @@ -65,4 +65,19 @@ jobs: committer_username: liss-bot committer_email: liss-bot@d0h.co + make-author-list: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: wow-actions/update-authors@v1 + with: + GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} + sort: commits + bots: true + path: .github/AUTHORS.txt + commit: ':blue_heart: Makes author list' + template: {{name}} <{{email}}> - {{commits}} commits diff --git a/.github/workflows/repo-visualization.yml b/.github/workflows/repo-visualization.yml index f0fdc46c..2797ae1c 100644 --- a/.github/workflows/repo-visualization.yml +++ b/.github/workflows/repo-visualization.yml @@ -1,16 +1,17 @@ -# Generates diagram showing file breakdown -name: 📊 Generate Repo Visualization +# Generates series of diagrams and visualizations +name: 📊 Generate Repo Stats on: workflow_dispatch: # Manual dispatch schedule: - cron: '0 1 * * 0' # At 01:00 on Sunday. + jobs: - build: + # File structure chart + file-structure: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@master - - name: Generate File Structure Diagram uses: githubocto/repo-visualizer@0.7.1 with: @@ -19,7 +20,28 @@ jobs: excluded_paths: dist,node_modules commit_message: ':yellow_heart: Updates repo diagram' branch: master - + + # Hercules git branching stats + git-stats: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + with: + fetch-depth: 0 + - name: Hercules + uses: src-d/hercules@master + - uses: actions/upload-artifact@master + with: + name: hercules_charts + path: hercules_charts.tar + + # Lowlighter metrics community metrics + community-stats: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master - name: Generate Repo Metrics uses: lowlighter/metrics@latest with: @@ -32,7 +54,7 @@ jobs: user: Lissy93 repo: dashy delay: 5 - + - name: Generate License Metrics uses: lowlighter/metrics@latest with: diff --git a/.github/workflows/save-repo-analytics.yml b/.github/workflows/save-repo-analytics.yml new file mode 100644 index 00000000..a385d15a --- /dev/null +++ b/.github/workflows/save-repo-analytics.yml @@ -0,0 +1,15 @@ +name: 📊 Save Repo Analytics +on: + workflow_dispatch: + schedule: + - cron: '0 1 * * 0' # At 01:00 on Sunday. +jobs: + gen-stats: + runs-on: ubuntu-latest + steps: + - name: Repo Analytics + uses: jgehrcke/github-repo-stats@HEAD + with: + repository: lissy93/dashy + databranch: DATA/repo-stats + ghtoken: ${{ secrets.BOT_GITHUB_TOKEN }} \ No newline at end of file