Skip to content
Permalink
Browse files

Add CI_BRANCH var

  • Loading branch information
muglug committed Dec 3, 2019
1 parent a35d5f1 commit 9f69d9ac99b1c143d39e4e10a309e6323a4f6e1a
Showing with 3 additions and 7 deletions.
  1. +1 −0 src/Psalm/Internal/ExecutionEnvironment/BuildInfoCollector.php
  2. +2 −7 src/Psalm/Plugin/Shepherd.php
@@ -263,6 +263,7 @@ protected function fillGithubActions()
$this->readEnv['GITHUB_ACTIONS'] = $this->env['GITHUB_ACTIONS'];
$this->readEnv['GITHUB_REF'] = $this->env['GITHUB_REF'];
$this->readEnv['CI_NAME'] = $this->env['CI_NAME'];
$this->readEnv['CI_BRANCH'] = $this->env['CI_BRANCH'];
$slug_parts = explode('/', (string) $this->env['GITHUB_REPOSITORY']);
@@ -51,9 +51,10 @@ public static function afterAnalysis(
if (!$source_control_data && isset($build_info['git']) && \is_array($build_info['git'])) {
$source_control_data = $build_info['git'];
unset($build_info['git']);
}
unset($build_info['git']);
if ($build_info) {
$data = [
'build' => $build_info,
@@ -114,12 +115,6 @@ function (array $i) : bool {
}
} else {
echo "🐑 Shepherd data sent 🐑" . PHP_EOL;
echo 'Git args: '
. var_export($source_control_data, true)
. PHP_EOL;
echo 'CI args: '
. var_export($build_info, true)
. PHP_EOL;
}
// Close cURL session handle

0 comments on commit 9f69d9a

Please sign in to comment.
You can’t perform that action at this time.