项目作者: joernahrens

项目描述 :
Just echoes x + 1
高级语言: TypeScript
项目地址: git://github.com/joernahrens/autoinc.git
创建时间: 2019-09-13T14:17:31Z
项目社区:https://github.com/joernahrens/autoinc

开源协议:MIT License

下载


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..