I would like to show the Github commit hash or the build number instead on my website. Something like a status badge but then displaying commit hash or a version of the build.
There is several Git metadata environment variables available including COMMIT_REF. The method to use them in your build will depend on your build. This Support Guide may help though.