Skip to content

konjoinfinity/random-unicode-text-generator

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

Random Unicode Text Generator 🚀🈸✨💜

A GitHub Action for creating random unicode text from an input range 🈯️

Tests GitHub Workflow Status (with event) GitHub Release Date - Published_At coverage badge GitHub Marketplace GitHub package.json dynamic Dynamic YAML Badge Code Style: prettier Code Linter: ESLint GitHub top language GitHub contributors GitHub Discussions GitHub Release (with filter) GitHub code size in bytes GitHub repo size GitHub package.json dynamic MIT

About 📰

A random unicode text generator GitHub action. Creates a unicode string based on an input range and length.

Usage ⌨️

In your workflow, to use this github action add a step like this to your workflow:

- name: Run Unicode Generator
  uses: konjoinfinity/[email protected]
  id: generate-unicode
  with:
   numOfChars: "50" # Optional - Number of unicode characters to output - Default = "100"
   startRange: "0x1F300" # Optional - Unicode character start range - Default = "0"
   endRange: "0x1F4FF" # Optional - Unicode character end range - Default = "50000"        
Example Output ▶️
👒🍎🍇👿🏜💴🏝📸🌤🎛💌📅🐙🌬🏿🏾🏴🎵🍡💩👗🍘🍩🐎🐀🏢🐿💧💧💴🏭🌘📌🏞🎡🎴👑💵🐉🎱🌄👦🌉👼🏚🍴📺🐁🐒🍛

Requirements 🔧

No extra configuration required to run this GitHub Action.

Inputs ⬅️

Name Type Description Requried? Default
numOfChars String Number of unicode characters to output. No "100"
startRange String Unicode character start range. Can be an hexadecimal or number (Ex. "2345", "0x1F300") No "0"
endRange String Unicode character end range. Can be an hexadecimal or number (Ex. "25000", "0x1F4FF") No "50000"

Outputs ➡️

Name Description How To Access
output Unicode text ouput generated by the action. ${{ steps.<your-step>.outputs.output}}

Accessing Outputs 👈🏻

- name: Show Output
  run: |
    echo ${{ steps.<your-step>.outputs.output }}

Example 📘

Link to workflow

name: Create Random Chinese From Unicode

on: push

jobs:
  generate-unicode:
    runs-on: ubuntu-latest
    steps:

      - name: Create Random Chinese
        id: createchinese
        uses: konjoinfinity/[email protected]
        with:
          numOfChars: "50"
          startRange: "0x4e00"
          endRange: "0x9fff"

      - name: Show Output
        run: |
          echo ${{ steps.createchinese.outputs.output }}
Example Output ✅
偼岪訸铪贠傩攚李抉表樸鎅勝傒谦櫥擝傝廞榻菸慺鯁鲺屗穀飾鈾楟惒娛宖噲淤瘁伹昇鼋弛螟停先铊奇綑嚠涫噝怲巳

Credits 🏅

Inspired By ⭐️