Skip to content

Commit

Permalink
LOC workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed Aug 3, 2024
1 parent b55a4d8 commit 17a8389
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/lines-of-code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Count Lines of Code

on:
push:
branches: [main]
workflow_dispatch:

jobs:
cloc:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]

- name: Count Lines of Code (cloc)
uses: djdefi/cloc-action@6
with:
options: --json --report-file=loc-meta.json

- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add loc-meta.json
git commit -m 'LOC updated'
git push

0 comments on commit 17a8389

Please sign in to comment.