MCPcopy
hub / github.com/ampproject/amphtml / ciCommitSha

Function ciCommitSha

build-system/common/ci.js:125–131  ·  view source on GitHub ↗

* Returns the commit SHA being tested by a push build. * @return {string}

()

Source from the content-addressed store, hash-verified

123 * @return {string}
124 */
125function ciCommitSha() {
126 return isGithubActions
127 ? env('GITHUB_SHA')
128 : isCircleci
129 ? env('CIRCLE_SHA1')
130 : '';
131}
132
133/**
134 * Returns the ID of the current build.

Callers 1

ciBuildShaFunction · 0.85

Calls 1

envFunction · 0.70

Tested by

no test coverage detected