Skip to content

Contracts Line Counter

Actions
Counts the number of lines in each file in the contracts directory
v1
Latest
Star (0)

Tags

 (1)

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 }}

Contracts Line Counter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Counts the number of lines in each file in the contracts directory
v1
Latest

Tags

 (1)

Contracts Line Counter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.