Skip to content

Setup Enry

Actions
Setup Enry GitHub Action
v0.4.2
Latest
Star (5)

Setup Enry GitHub Action

Stand With Ukraine GitHub release functional-tests linting security

This action sets up an enry tool.

Supported OS

OS
Windows
Linux
macOS

Prerequisites

The following tools have to be installed for successful work of this GitHub Action: curl.

Inputs

- uses: fabasoad/setup-enry-action@v0
  with:
    # (Optional) enry version. Defaults to the latest version.
    version: "1.3.0"
    # (Optional) If "false" skips installation if enry is already installed.
    # If "true" installs enry in any case. Defaults to "false".
    force: "false"
    # (Optional) GitHub token that is used to send requests to GitHub API such
    # as getting latest release. Defaults to the token provided by GitHub Actions
    # environment.
    github-token: "${{ github.token }}"

Outputs

Name Description Example
installed Whether enry was installed or not true

Example usage

name: Setup Enry

on: push

jobs:
  example:
    name: Example
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: fabasoad/setup-enry-action@v0
      - name: Run CLI
        run: |
          echo "Text format:"
          enry
          echo "JSON format:"
          enry --json | jq

Result

Text format:
79.74% HTML
9.90% TypeScript
6.44% JavaScript
3.93% CSS
JSON format:
[
  {
    "color": "#e34c26",
    "language": "HTML",
    "percentage": "79.74%",
    "type": "unknown"
  },
  {
    "color": "#3178c6",
    "language": "TypeScript",
    "percentage": "9.90%",
    "type": "unknown"
  },
  {
    "color": "#f1e05a",
    "language": "JavaScript",
    "percentage": "6.44%",
    "type": "unknown"
  },
  {
    "color": "#563d7c",
    "language": "CSS",
    "percentage": "3.93%",
    "type": "unknown"
  }
]

Contributions

Alt

Setup Enry 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

Setup Enry GitHub Action
v0.4.2
Latest

Setup Enry 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.