Exports the Heroku
SOURCE_VERSION variable (usually the Git
SHA) to an
environment variable as
GIT_SHA that application code can access at runtime.
This buildpack must be used in concert with one or more others. Heroku supports multiple buildpacks out of the box.
The order of buildpacks does matter. You probably want this one first in the order. For example:
heroku buildpacks:add --index 1 https://github.com/dive-networks/heroku-buildpack-git-sha.git
SHA will now be available to application code via
Node process.env['GIT_SHA'] Java System.getenv("GIT_SHA") Scala sys.env("GIT_SHA")
Copy the snippet above into CLI.