Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshjohanning/text-to-emoji-action
A simple GitHub Composite Action that takes an input (like food, color, animal) and returns back an emoji
https://github.com/joshjohanning/text-to-emoji-action
actions github hiiimickey
Last synced: about 1 month ago
JSON representation
A simple GitHub Composite Action that takes an input (like food, color, animal) and returns back an emoji
- Host: GitHub
- URL: https://github.com/joshjohanning/text-to-emoji-action
- Owner: joshjohanning
- License: mit
- Created: 2023-08-15T15:59:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-15T17:43:58.000Z (over 1 year ago)
- Last Synced: 2024-09-14T06:05:13.887Z (2 months ago)
- Topics: actions, github, hiiimickey
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# text-to-emoji-action
A simple GitHub Composite Action that takes an input (like food, color, animal) and returns back an emoji.
## Usage
```yml
- name: get emoji
id: get-emoji
uses: joshjohanning/text-to-emoji-action@v1
with:
color: ${{ inputs.color }}
food: ${{ inputs.food }}
animal: ${{ inputs.animal }}
- name: write emoji
run: |
# write emoji to console
echo "color emoji: ${{ steps.get-emoji.outputs.color-emoji }}"
echo "food emoji: ${{ steps.get-emoji.outputs.food-emoji }}"
echo "animal emoji: ${{ steps.get-emoji.outputs.animal-emoji }}"# write emoji to job summary
echo "${{ steps.get-emoji.outputs.color-emoji }} \
${{ steps.get-emoji.outputs.food-emoji }} \
${{ steps.get-emoji.outputs.animal-emoji }}" \
>> $GITHUB_STEP_SUMMARY
```## Inputs
Currently supports:
- `animal`
- `color` *(rainbow colors only)*
- `food`> **Important**
> Use the _singular_ form of the word for simplicity, e.g.: `fry` instead of `fries`, `grape` instead of `grapes`, etc.> **Note**
> Each input is optional## Outputs
- `animal-emoji`
- `food-emoji`
- `color-emoji`Each can be referenced by setting an `id` to the action reference and then using the output name, like:
```
${{ steps..outputs. }}
```*See the example in the [usage](#usage) section above for the full sample*