Generates coolnames like 'crazy-red-baboon' for use in tagging things with Github Actions
unique-names-generator is used to generate the names.
NOTE: Based on the original 'coolname-generator' https://github.com/marketplace/actions/coolname-generator. This version is updated to avoid env vars.
Parameter | Default | Description |
---|---|---|
separator |
- |
What separator to use. |
length |
2 |
How many words in the name, 2 or 3 . |
style |
lowerCase |
Name output case style. |
Parameter | Description |
---|---|
name |
The generated random name |
name: Really coolname Generator
uses: cookiejest/[email protected]
uses: cookiejest/[email protected]
id: generator
with:
separator: "_"
length: "4"
style: "upperCase"
name: test generator output
run: echo "latest,${{ steps.generator.outputs.name }}"
See the build instructions
for node based actions in order to build index.js
to dist/index.js