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.
- Clone this repo
- Create a new Firebase project
- Install firebase CLI tools:
npm install -g firebase-tools
- Login
firebase login
- Init project with
firebase init
- Deploy via
firebase deploy
$ 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..