Optionaly bold class type #44
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: Lines of code badge | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_loc_badge: | |
runs-on: ubuntu-latest | |
name: Build LoC Badge | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Generate Badge | |
uses: shadowmoose/GHA-LoC-Badge@1.0.0 | |
id: badge | |
with: | |
debug: true | |
directory: ./ | |
badge: ./output/loc-badge.svg | |
ignore: '**/images/**||*.zip|gradlew|gradlew.bat|*.jar|**/LICENSE|**/gradle/**' | |
badge_label: 'Lines of Code' | |
- name: Print the output | |
run: | | |
echo "Scanned: ${{ steps.badge.outputs.counted_files }}"; | |
echo "Line Count: ${{ steps.badge.outputs.total_lines }}"; | |
- name: Deploy Badge | |
uses: peaceiris/actions-gh-pages@v2.9.0 | |
env: | |
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
PUBLISH_BRANCH: project-badges | |
PUBLISH_DIR: ./output | |
with: | |
username: "shadow-bot" | |
useremail: "github_bot@github.com" |