Skip to content

Commit

Permalink
Create loc.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas authored Mar 30, 2024
1 parent c77faa1 commit a96969b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/loc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on: [push]
name: Lines of Code

jobs:
loc_job:
runs-on: ubuntu-latest
name: Run
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create the badge
uses: shadowmoose/[email protected]
id: badge
with:
debug: true
directory: ./
badge: ./output/badge.svg
ignore: '.github|samples|setup|README.md'

- name: Print the output
run: |
echo "Scanned: ${{ steps.badge.outputs.counted_files }}";
echo "Line Count: ${{ steps.badge.outputs.total_lines }}";
- name: Deploy to loc branch
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./output
publish_branch: loc
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

0 comments on commit a96969b

Please sign in to comment.