Skip to content

Github Action that uses unique-name-generator to create a random name that is output to GH Actions environment variables.

Notifications You must be signed in to change notification settings

peternied/random-name

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

generated_name

The generated random name output.

Example usage

uses: peternied/random-name@v1
uses: peternied/random-name@v1
id: random-name
with:
  separator: '_'
  length: '4'
  style: 'upperCase'

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

Changelog

v1

About

Github Action that uses unique-name-generator to create a random name that is output to GH Actions environment variables.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%