We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447e8c8 commit 70ad5f2Copy full SHA for 70ad5f2
src/Context/FeatureContext.php
@@ -213,16 +213,17 @@ private static function get_process_env_variables() {
213
$env['TRAVIS_BUILD_DIR'] = $travis_build_dir;
214
}
215
216
- $github_token = getenv( 'GITHUB_TOKEN' );
217
- if ( false !== $github_token ) {
218
- $env['GITHUB_TOKEN'] = $github_token;
219
- }
220
-
+ // Dump environment for debugging purposes, but before adding the GitHub token.
221
wp_cli_behat_env_debug( "Environment:" );
222
foreach ( $env as $key => $value ) {
223
wp_cli_behat_env_debug( " [{$key}] => {$value}" );
224
225
+ $github_token = getenv( 'GITHUB_TOKEN' );
+ if ( false !== $github_token ) {
+ $env['GITHUB_TOKEN'] = $github_token;
+ }
226
+
227
return $env;
228
229
0 commit comments