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

Function ciBuildUrl

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

* Returns the URL of the current build. * @return {string}

()

Source from the content-addressed store, hash-verified

147 * @return {string}
148 */
149function ciBuildUrl() {
150 return isGithubActions
151 ? `${env('GITHUB_SERVER_URL')}/${env('GITHUB_REPOSITORY')}/actions/runs/${env('GITHUB_RUN_ID')}` // prettier-ignore
152 : isCircleci
153 ? `https://app.circleci.com/pipelines/workflows/${env('CIRCLE_WORKFLOW_ID')}` // prettier-ignore
154 : '';
155}
156
157/**
158 * Returns the ID of the current job.

Callers

nothing calls this directly

Calls 1

envFunction · 0.70

Tested by

no test coverage detected