Use CircleCI version 2.1 at the top of your .circleci/config.yml file.
1
version: 2.1
Add the orbs
stanza below your version, invoking the orb:
1
2
orbs:
awesome-emoji: a4geru/awesome-emoji@1.1.0
Use awesome-emoji
elements in your existing workflows and jobs.
Opt-in to use of uncertified orbs on your organization’s Security settings page.
PARAMETER | DESCRIPTION | REQUIRED | DEFAULT | TYPE |
---|---|---|---|---|
emoji | emoji name | No | sushi | enum |
time | number of display | No | 10 | integer |
prefix | string add before emoji | No | '' | string |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This code is licensed from CircleCI to the user under the MIT license.
# See here for details: https://circleci.com/developer/orbs/licensing
version: 2.1
description: Display an emoji several times
commands:
echo:
parameters:
emoji:
type: enum
enum: ['sushi', 'beer']
description: emoji name
default: sushi
time:
type: integer
description: number of display
default: 10
prefix:
type: string
description: string add before emoji
default: ''
steps:
- run:
name: echo
command: emoji=`echo << parameters.emoji >> | tr '[:lower:]' '[:upper:]'`; bash -c "echo -n << parameters.prefix >>; for i in {0..<< parameters.time >>};do echo -ne \$(eval 'echo \$$(echo $emoji)'); done"
environment:
SUSHI: "\\U0001F363"
BEER: "\\U0001F37A"