-
Notifications
You must be signed in to change notification settings - Fork 39
34 lines (32 loc) · 849 Bytes
/
badge.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
---
name: Badge
'on':
push:
branches:
- main
jobs:
count-code-lines:
name: Count Code Lines
runs-on: ubuntu-24.04
environment: production
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Install cloc
run: |
sudo apt-get update
sudo apt-get install --yes cloc
- name: Count code lines
run: |
echo "CODE_LINE_COUNT=$(bin/count_code_lines.sh)" >> $GITHUB_ENV
- name: Create badge
uses: schneegans/dynamic-badges-action@v1.7.0
with:
auth: ${{ secrets.GIST_TOKEN }}
gistID: ecff3e2b8226a5c1406b0c2e2622e968
filename: code_line_count.json
label: code lines
labelColor: gray
message: ${{ env.CODE_LINE_COUNT }}
color: blue