Skip to content

A Github Action that output a random ID, based on twitter's snowflake.

License

Notifications You must be signed in to change notification settings

capano88/snowflake-github-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snowflake Github Action

This generates a Twitter Snowflake, for use in other actions.

Inputs

datacenter

datacenter identifier. It can have values from 0 to 31.

worker

worker identifier. It can have values from 0 to 31.

id

generator identifier. It can have values from 0 to 1023.

epoch

Epoch to use in generation of the snowflake

Outputs

id

The twitter snowflake, in decimal form.

Example usage

uses: gubareve/[email protected]
with:
  worker: 3

About

A Github Action that output a random ID, based on twitter's snowflake.

Resources

License

Stars

Watchers

Forks

Packages

No packages published