Skip to content
terminal

GitHub Action

Setup Enry

v0.3.3 Latest version

Setup Enry

terminal

Setup Enry

Setup Enry GitHub Action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Enry

uses: fabasoad/setup-enry-action@v0.3.3

Learn more about this action in fabasoad/setup-enry-action

Choose a version

Setup Enry GitHub Action

Stand With Ukraine GitHub release functional-tests linting

This action sets up an enry tool.

Supported OS: Linux, macOS.

Inputs

Name Required Description Default Possible values
version No Enry version that can be found here 1.2.0 1.1.0, 1.0.0, etc.

Usage

name: Setup Enry

on: push

jobs:
  example:
    name: Example
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@main
      - uses: fabasoad/setup-enry-action@main
      - name: Run CLI
        run: enry

Result

Run enry
59.57%  HTML
21.29%  JavaScript
14.25%  TypeScript
4.89%   CSS

Useful examples

Convert to json

# Simple output
enry
59.57%  HTML
21.29%  JavaScript
14.25%  TypeScript
4.89%   CSS

# Convert to JSON
echo "{$(enry | sed 's/^\(.*\)\t\(.*\)$/\"\2\":\"\1\"/' | paste -sd "," -)}"
{"HTML":"59.57%","JavaScript":"21.29%","TypeScript":"14.25%","CSS":"4.89%"}