* Returns the URL of the current build. * @return {string}
()
| 147 | * @return {string} |
| 148 | */ |
| 149 | function 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. |