Delete .gitea/workflows/Badge.yml
Update Server / Primary Server Repo Update (push) Has been cancelled
Update Server / Physical Server Update Trigger (push) Has been cancelled

This commit is contained in:
2023-10-06 20:16:25 -09:00
parent 002211892d
commit f19c91a411
-32
View File
@@ -1,32 +0,0 @@
on: [push]
jobs:
scc_job:
runs-on: ubuntu-latest
name: A job to count the lines of code.
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get lines of code (more sophisticated)
id: scc
uses: iryanbell/scc-docker-action@v1.0.2
with:
args: ${{ env.workspace }} --format json --remap-all "":"Misc."
- name: Make lines of code badge
uses: emibcn/badge-action@v2.0.2
with:
label: Lines of Code
status: ${{ fromJson(steps.scc.outputs.scc)[0].Code }}
color: 'blue'
path: lines.svg
- name: Install rsvg-convert
run: apt-get update && apt-get install librsvg2-bin -y
- name: Convert to PNG
run: rsvg-convert -o lines.png lines.svg
- name: Process Repo Name
id: repo-basename
run: echo "REPO_NAME=`basename ${{ gitea.repository }}`" >> $GITHUB_OUTPUT
- name: Delete old release
run: curl --user npease:${{ secrets.BADGE_API_KEY }} -X DELETE https://gitea.nicholaspease.com/api/packages/npease/generic/cloc-${{ steps.repo-basename.outputs.REPO_NAME }}/latest
- name: Upload to Registry
run: curl --user npease:${{ secrets.BADGE_API_KEY }} --upload-file lines.png https://gitea.nicholaspease.com/api/packages/npease/generic/cloc-${{ steps.repo-basename.outputs.REPO_NAME }}/latest/cloc.png