-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (34 loc) · 1.01 KB
/
loc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Lines of code badge
on:
push:
branches:
- master
jobs:
build_loc_badge:
runs-on: ubuntu-latest
name: Build LoC Badge
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Generate Badge
uses: shadowmoose/[email protected]
id: badge
with:
debug: true
directory: ./
badge: ./output/loc-badge.svg
ignore: '**/images/**||*.zip|gradlew|gradlew.bat|*.jar|**/LICENSE|**/gradle/**'
badge_label: 'Lines of Code'
- name: Print the output
run: |
echo "Scanned: ${{ steps.badge.outputs.counted_files }}";
echo "Line Count: ${{ steps.badge.outputs.total_lines }}";
- name: Deploy Badge
uses: peaceiris/[email protected]
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: project-badges
PUBLISH_DIR: ./output
with:
username: "shadow-bot"
useremail: "[email protected]"