Skip to content

javiesses/line-counter-contracts

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contracts Line Counter

This action has been created as an exercise to learn how to create custom Github Actions to be published in the Github Marketplace.

It simply counts the lines of the files under the /contracts folder.

Usage

 - name: Run Custom Action
  uses: javiesses/contracts-line-counter@v1
  id: custom

Output

It exposes two fields in the output object:

lineCounts: an array of objects containing { filename: lineCount }. Can be accessed as ${{ steps.custom.outputs.lineCounts }}

html: an HTML table that can be used as a report containg the amount of lines per file. Can be accessed as ${{ steps.custom.outputs.html }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published