Skip to content

joernahrens/autoinc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autoinc (DEPRECATED!!!)

GitHub Action now has GITHUB_RUN_ID AND GITHUB_RUN_NUMBER: https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables


This is a small "REST API" to generate auto increment numbers, because GitHub Actions can't do that.

Setup

  1. Clone this repo
  2. Create a new Firebase project
  3. Install firebase CLI tools: npm install -g firebase-tools
  4. Login firebase login
  5. Init project with firebase init
  6. Deploy via firebase deploy

Usage

$ curl https://your-firebase-project-id.cloudfunctions.net/inc/foobar

"foobar" is your ID. It starts with 1 and counts up on every call.

Don't spam it, it will stop after 125k calls per month if you are on the free Firebase plan.

It is worth mentioning, that there is no threading security implemented..

Releases

No releases published

Packages

No packages published