Just echoes x + 1
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.
npm install -g firebase-tools
firebase login
firebase init
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..