Skip to content
play

GitHub Action

Unique Name Generator Action

v2 Latest version

Unique Name Generator Action

play

Unique Name Generator Action

Create a random name and output it to Github Actions environment variables

Installation

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

              

- name: Unique Name Generator Action

uses: TGPSKI/name-generator-node-action@v2

Learn more about this action in TGPSKI/name-generator-node-action

Choose a version

Unique Name Generator Action

This action creates a random name and outputs it to Github Actions environment variables. unique-names-generator is used to generate the random names.

Inputs

separator

Required What separator to use. Default -.

length

Required How many words in the name. Default 2.

style

Required Name output case style. Default lowerCase.

Outputs

name

The generated random name output.

Example usage

uses: TGPSKI/name-generator-node-action@v2
uses: TGPSKI/name-generator-node-action@v2
id: generator
with:
  separator: '_'
  length: '4'
  style: 'upperCase'

name: test generator output
run: echo "latest,${{ steps.generator.outputs.name }}"