Merge pull request #199 from cyclinder/networking_schema #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Badge Status | |
env: | |
CODESTATUSSCRIPT: "./scripts/codeCoverage.sh" | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
update-badges: | |
name: Update Badges | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Download cloc | |
run: sudo apt-get update -y && sudo apt-get install -y cloc | |
- name: Get the Numbers | |
shell: bash | |
run: | | |
TOOL_PATH=${{ env.CODESTATUSSCRIPT }} | |
CODE_LINES=$( ${TOOL_PATH} --code-lines ) | |
echo "CODE_LINES=${CODE_LINES}" >> $GITHUB_ENV | |
- name: Create Lines-of-Code-Badge | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.WELAN_PAT }} | |
gistID: 2009b7c07bf36b367f0b87e4dda78391 | |
filename: e2eframecodeline.json | |
label: Code Lines | |
message: ${{ env.CODE_LINES }} | |
color: lightgrey |