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

Function ciJobId

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

* Returns the ID of the current job. * @return {string}

()

Source from the content-addressed store, hash-verified

159 * @return {string}
160 */
161function ciJobId() {
162 return isGithubActions
163 ? env('GITHUB_RUN_NUMBER')
164 : isCircleci
165 ? env('CIRCLE_JOB')
166 : '';
167}
168
169/**
170 * Returns the URL of the current job.

Callers

nothing calls this directly

Calls 1

envFunction · 0.70

Tested by

no test coverage detected