Skip to content

offensive-vk/auto-stats

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Stats

Auto Stats Action enables to generate a repository statistics file like total number of file, number of words in every file, etc.

Example

You can use the following example as a template to create a new file with any name under .github/workflows/.

name: Auto Repo Stats

on: 
  schedule:
    - cron: '10 0 * * *'

jobs:
  stats:
    name: Generate Stats
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
      
    - name: Generate Stats
      uses: offensive-vk/auto-stats@v7
      with:
        branch: master
        commit-message: Updated Repo Stats
        github-token: ${{ secrets.GITHUB_TOKEN }}

Sample Output

Daily Repository Statistics

Generated on <time>

SECURITY.md: 1111 characters
LICENSE: 34523 characters
compose.yaml: 260 characters
STATS.md: 165 characters
RECENT.md: 5505 characters
Dockerfile: 922 characters
pnpm-lock.yaml: 114 characters
README.md: 16266 characters
WORKFLOWS.md: 3035 characters
package.json: 1201 characters

Summary ⛽

  • Total files: 44
  • Total character count: 5256228
  • Average characters per file: 119459
  • Largest file: shocked.gif (952063 characters)
  • Smallest file: GREETINGS.md (69 characters)
  • Optional: Total word count: 274804

© Vedansh 2020 - Present
Licensed under MIT
hamster
Thanks for visiting :)