Skip to content

Merge pull request #186 from ty-dc/e2e/event #119

Merge pull request #186 from ty-dc/e2e/event

Merge pull request #186 from ty-dc/e2e/event #119

Workflow file for this run

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@v3
- 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