Browse Source

Update cloc.yml

Update cloc.yml

Delete Badge.yml

Update cloc.yml
pull/385/head
Dmitry Nefedov 2 years ago
parent
commit
6443962ccc
  1. 31
      .github/workflows/Badge.yml
  2. 2
      .github/workflows/cloc.yml

31
.github/workflows/Badge.yml

@ -1,31 +0,0 @@
name: Badges
on:
push:
branches:
- master
jobs:
update-badges:
name: Update Badges
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@main
- name: Download cloc
run: sudo apt-get update -y && sudo apt-get install -y cloc
- name: Get the Numbers
run: |
chmod +x Scripts/cloc.sh
echo "CODE_LINES=$(Scripts/cloc.sh --loc)" >> $GITHUB_ENV
echo "COMMENT_PERCENTAGE=$(Scripts/cloc.sh --percentage)" >> $GITHUB_ENV
- name: Create Lines-of-Code-Badge
uses: schneegans/dynamic-badges-action@master
with:
auth: ${{ secrets.GIST_SophiaScript }}
gistID: 9852d6b9569a91bf69ceba8a94cc97f4
filename: SophiaScript.json
label: Lines of Code
message: ${{ env.CODE_LINES }}
namedLogo: PowerShell
color: brightgreen

2
.github/workflows/cloc.yml

@ -39,7 +39,7 @@ jobs:
echo "CODE_LINES=$Summary" >> $env:GITHUB_ENV echo "CODE_LINES=$Summary" >> $env:GITHUB_ENV
- name: Create Lines-of-Code-Badge - name: Writing to Gist
uses: schneegans/dynamic-badges-action@master uses: schneegans/dynamic-badges-action@master
with: with:
auth: ${{ secrets.GIST_SophiaScript }} auth: ${{ secrets.GIST_SophiaScript }}

Loading…
Cancel
Save