* Returns the commit SHA being tested by a push build. * @return {string}
()
| 123 | * @return {string} |
| 124 | */ |
| 125 | function 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. |