An open API service indexing awesome lists of open source software.

https://github.com/fabasoad/setup-groff-action

This GitHub action installs groff (GNU roff)
https://github.com/fabasoad/setup-groff-action

github-action github-actions programming-language roff roff-lang roff-language

Last synced: about 2 months ago
JSON representation

This GitHub action installs groff (GNU roff)

Awesome Lists containing this project

README

        

# Setup groff (GNU roff)

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
![GitHub release](https://img.shields.io/github/v/release/fabasoad/setup-groff-action?include_prereleases)
![functional-tests](https://github.com/fabasoad/setup-groff-action/actions/workflows/functional-tests.yml/badge.svg)
![security](https://github.com/fabasoad/setup-groff-action/actions/workflows/security.yml/badge.svg)
![linting](https://github.com/fabasoad/setup-groff-action/actions/workflows/linting.yml/badge.svg)

This action sets up [groff (GNU roff)](https://www.gnu.org/software/groff).

## Prerequisites

| OS | Supported | Tools |
|---------|--------------------|--------|
| Linux | :white_check_mark: | None |
| macOS | :white_check_mark: | `brew` |
| Windows | :x: | N/A |

## Inputs

```yaml
- uses: fabasoad/setup-groff-action@v0
with:
# (Optional) If "true" it installs groff even if it is already installed on
# a runner. Otherwise, skips installation. Defaults to "false".
force: "false"
```

## Outputs

| Name | Description | Example |
|-----------|------------------------------------|---------|
| installed | Whether groff was installed or not | `true` |

## Example

Let's try to run [hello-world.roff](./hello-world.roff) file using the workflow
below.

```yaml
name: Setup groff

on: push

jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fabasoad/setup-groff-action@v0
- run: groff -man -Tascii hello.roff
```

And you should see the following output:

```text
HELLO(1) General Commands Manual HELLO(1)

NAME
hello - print Hello, World!

SYNOPSIS
hello

DESCRIPTION
The hello command prints "Hello, World!" to the standard output.

EXAMPLES
hello

Hello, World!

Hello Manual June 2024 HELLO(1)
```